From: Philip Kaufmann Date: Tue, 8 May 2012 21:02:48 +0000 (+0200) Subject: fix an incorrect if-clause in net.cpp X-Git-Tag: v0.4.0-unstable~129^2~1^2^2^2^2~3 X-Git-Url: https://git.novaco.in/?a=commitdiff_plain;h=af413c0a0ff507da69afae6399bf3ff3fbf0774b;hp=a0ea95d3ceacea5868b8f921c36bbdddb5dc2b1b;p=novacoin.git fix an incorrect if-clause in net.cpp --- diff --git a/src/net.cpp b/src/net.cpp index 04d278c..a9f6c87 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -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++)