mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Windows bug fixes
This commit is contained in:
parent
d2090a32d8
commit
d10627a77f
13 changed files with 162 additions and 90 deletions
|
@ -297,7 +297,13 @@ bool UDPSocket::WaitData(int timeout_ms)
|
|||
dstream<<(int)m_handle<<": Select failed: "<<strerror(errno)<<std::endl;
|
||||
#endif
|
||||
#ifdef _WIN32
|
||||
dstream<<(int)m_handle<<": WSAGetLastError()="<<WSAGetLastError()<<std::endl;
|
||||
int e = WSAGetLastError();
|
||||
dstream<<(int)m_handle<<": WSAGetLastError()="<<e<<std::endl;
|
||||
if(e == 10004 /*=WSAEINTR*/)
|
||||
{
|
||||
dstream<<"WARNING: Ignoring WSAEINTR."<<std::endl;
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
throw SocketException("Select failed");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue