mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 16:13:46 +01:00
Lower log level for benign socket errors
This commit is contained in:
parent
96cc5b34fe
commit
4236792b87
@ -571,9 +571,8 @@ bool UDPSocket::WaitData(int timeout_ms)
|
|||||||
int e = WSAGetLastError();
|
int e = WSAGetLastError();
|
||||||
dstream << (int) m_handle << ": WSAGetLastError()="
|
dstream << (int) m_handle << ": WSAGetLastError()="
|
||||||
<< e << std::endl;
|
<< e << std::endl;
|
||||||
if(e == 10004 /* = WSAEINTR */ || e == 10009 /*WSAEBADF*/)
|
if (e == 10004 /* WSAEINTR */ || e == 10009 /* WSAEBADF */) {
|
||||||
{
|
infostream << "Ignoring WSAEINTR/WSAEBADF." << std::endl;
|
||||||
dstream << "WARNING: Ignoring WSAEINTR/WSAEBADF." << std::endl;
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user