fix an incorrect if-clause in net.cpp
authorPhilip Kaufmann <phil.kaufmann@t-online.de>
Tue, 8 May 2012 21:02:48 +0000 (23:02 +0200)
committerLuke Dashjr <luke-jr+git@utopios.org>
Wed, 6 Jun 2012 19:37:53 +0000 (19:37 +0000)
src/net.cpp

index 04d278c..a9f6c87 100644 (file)
@@ -868,7 +868,7 @@ void ThreadSocketHandler2(void* parg)
         if (nSelect == SOCKET_ERROR)
         {
             int nErr = WSAGetLastError();
-            if (hSocketMax > -1)
+            if (hSocketMax != INVALID_SOCKET)
             {
                 printf("socket select error %d\n", nErr);
                 for (unsigned int i = 0; i <= hSocketMax; i++)