aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2012-05-08 23:02:48 +0200
committerPhilip Kaufmann <phil.kaufmann@t-online.de>2012-05-09 09:11:13 +0200
commit3b6ed2294bc1c69b0232a3eb978df2ac4e08df48 (patch)
treee0e687dfeb124dc697594717078b03ade27f5427 /src
parent9e11cb53dda23a3064e756c59ba0328230b5a0e5 (diff)
downloadbitcoin-3b6ed2294bc1c69b0232a3eb978df2ac4e08df48.tar.xz
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++)