1
0
Fork 0

Lower log level for benign socket errors

mutilcraft-mt53
ShadowNinja 2015-10-14 02:21:41 -04:00 committed by kwolekr
parent 96cc5b34fe
commit 4236792b87
1 changed files with 2 additions and 3 deletions

View File

@ -571,9 +571,8 @@ bool UDPSocket::WaitData(int timeout_ms)
int e = WSAGetLastError();
dstream << (int) m_handle << ": WSAGetLastError()="
<< e << std::endl;
if(e == 10004 /* = WSAEINTR */ || e == 10009 /*WSAEBADF*/)
{
dstream << "WARNING: Ignoring WSAEINTR/WSAEBADF." << std::endl;
if (e == 10004 /* WSAEINTR */ || e == 10009 /* WSAEBADF */) {
infostream << "Ignoring WSAEINTR/WSAEBADF." << std::endl;
return false;
}
#endif