From af413c0a0ff507da69afae6399bf3ff3fbf0774b Mon Sep 17 00:00:00 2001 From: Philip Kaufmann Date: Tue, 8 May 2012 23:02:48 +0200 Subject: fix an incorrect if-clause in net.cpp --- src/net.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/net.cpp') diff --git a/src/net.cpp b/src/net.cpp index 04d278c9f1..a9f6c87bc7 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++) -- cgit v1.2.3