]> git.mxchange.org Git - flightgear.git/commitdiff
Suppress a recurrent "no error" message, at least with MSVC
authorfredb <fredb>
Sun, 19 Feb 2006 19:04:21 +0000 (19:04 +0000)
committerfredb <fredb>
Sun, 19 Feb 2006 19:04:21 +0000 (19:04 +0000)
src/MultiPlayer/multiplaymgr.cxx

index 9f3fa2c8ee7bce37ee9bfa6ea4df302b9bc2a376..2805260a90af49e081a50a3af34d9d529e3a9987 100644 (file)
@@ -351,7 +351,7 @@ FGMultiplayMgr::Update(void)
     //  no Data received
     //////////////////////////////////////////////////
     if (bytes <= 0) {
-      if (errno != EAGAIN)
+      if (errno != EAGAIN && errno != 0) // MSVC output "NoError" otherwise
         perror("FGMultiplayMgr::MP_ProcessData");
       break;
     }