Merge branch '0.4.x' into 0.5.x
[novacoin.git] / src / net.cpp
index ebdc1cc..8384251 100644 (file)
@@ -914,7 +914,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++)