X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fnet.cpp;h=838425109508f90153c397761552413cd1354bce;hp=ebdc1cc1495ad959e710ddaec483d0c4e3090720;hb=3703150d56ff6ee557ab330e55637c9c23835902;hpb=1bc2f0a37b68aa99e90437105a48c47046b6c0d0 diff --git a/src/net.cpp b/src/net.cpp index ebdc1cc..8384251 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -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++)