]> git.mxchange.org Git - flightgear.git/blobdiff - src/Network/nmea.cxx
Removed some testing cruft related to a dumb attempt to disable the nagle
[flightgear.git] / src / Network / nmea.cxx
index 7eeb98827281cd75430e6445059a095b5b0750cf..d32d6953de844a283617065b8c19cd244f1f87d5 100644 (file)
@@ -476,13 +476,13 @@ bool FGNMEA::process() {
            return false;
        }
     } else if ( get_direction() == in ) {
-       if ( length = io->readline( buf, FG_MAX_MSG_SIZE ) ) {
+       if ( (length = io->readline( buf, FG_MAX_MSG_SIZE )) > 0 ) {
            parse_message();
        } else {
            FG_LOG( FG_IO, FG_ALERT, "Error reading data." );
            return false;
        }
-       if ( length = io->readline( buf, FG_MAX_MSG_SIZE ) ) {
+       if ( (length = io->readline( buf, FG_MAX_MSG_SIZE )) > 0 ) {
            parse_message();
        } else {
            FG_LOG( FG_IO, FG_ALERT, "Error reading data." );