1
0
Fork 0

Suppress a recurrent "no error" message, at least with MSVC

This commit is contained in:
fredb 2006-02-19 19:04:21 +00:00
parent 5fe860750e
commit c0f6257c18

View file

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