Skip to content
Snippets Groups Projects
Commit 4236792b authored by ShadowNinja's avatar ShadowNinja Committed by kwolekr
Browse files

Lower log level for benign socket errors

parent 96cc5b34
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment