diff --git a/src/Network/native.cxx b/src/Network/native.cxx index fffabba3f..957cbe2b2 100644 --- a/src/Network/native.cxx +++ b/src/Network/native.cxx @@ -70,12 +70,9 @@ bool FGNative::process() { return false; } } else if ( get_direction() == in ) { - if ( io->read( (char *)(& buf), length ) == length ) { + while ( io->read( (char *)(& buf), length ) == length ) { FG_LOG( FG_IO, FG_ALERT, "Success reading data." ); *cur_fdm_state = buf; - } else { - FG_LOG( FG_IO, FG_ALERT, "Error reading data." ); - return false; } }