summaryrefslogtreecommitdiff
path: root/src/socket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/socket.cpp')
-rw-r--r--src/socket.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/socket.cpp b/src/socket.cpp
index 88ba78c6a..dddc8f36a 100644
--- a/src/socket.cpp
+++ b/src/socket.cpp
@@ -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");
}