From d70120752c8b1b010e536fb506ca198b86e79286 Mon Sep 17 00:00:00 2001 From: curt Date: Fri, 21 Jan 2000 18:02:19 +0000 Subject: [PATCH] Read all pending messages. --- src/Network/native.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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; } }