mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Lower log level for benign socket errors
This commit is contained in:
parent
96cc5b34fe
commit
4236792b87
1 changed files with 2 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue