diff options
-rw-r--r-- | CommonLibs/Sockets.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CommonLibs/Sockets.cpp b/CommonLibs/Sockets.cpp index b343b7e..62841ad 100644 --- a/CommonLibs/Sockets.cpp +++ b/CommonLibs/Sockets.cpp @@ -190,7 +190,8 @@ int DatagramSocket::read(char* buffer, unsigned timeout) throw SocketError(); } if (sel==0) return -1; - return read(buffer); + if (FD_ISSET(mSocketFD,&fds)) return read(buffer); + return -1; } |