aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@exmulti.com>2012-05-09 07:50:27 -0700
committerJeff Garzik <jgarzik@exmulti.com>2012-05-09 07:50:27 -0700
commitd54e6e8359f814e217365a35c222d9d461d0716e (patch)
tree7fdbd4f85324683de3a31ff1ac52fd5851fed3e9 /src
parent2e767410b83a4468bf83be9c39f99cf0325c7739 (diff)
parent3b6ed2294bc1c69b0232a3eb978df2ac4e08df48 (diff)
Merge pull request #1225 from Diapolo/net_cpp_if_clause
fix an incorrect if-clause in net.cpp
Diffstat (limited to 'src')
-rw-r--r--src/net.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp
index 7efe304fb6..8603514f91 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -716,7 +716,7 @@ void ThreadSocketHandler2(void* parg)
if (nSelect == SOCKET_ERROR)
{
int nErr = WSAGetLastError();
- if (hSocketMax > (SOCKET) -1)
+ if (hSocketMax != INVALID_SOCKET)
{
printf("socket select error %d\n", nErr);
for (unsigned int i = 0; i <= hSocketMax; i++)