aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2012-05-08 23:02:48 +0200
committerLuke Dashjr <luke-jr+git@utopios.org>2012-06-06 19:37:53 +0000
commitaf413c0a0ff507da69afae6399bf3ff3fbf0774b (patch)
treed998c9e1d2a64b83439f71a04a915851dd07338e
parenta0ea95d3ceacea5868b8f921c36bbdddb5dc2b1b (diff)
fix an incorrect if-clause in net.cpp
-rw-r--r--src/net.cpp2
1 files changed, 1 insertions, 1 deletions
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++)