aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorPhilip Kaufmann <[email protected]>2012-05-08 23:02:48 +0200
committerPhilip Kaufmann <[email protected]>2012-05-09 09:11:13 +0200
commit3b6ed2294bc1c69b0232a3eb978df2ac4e08df48 (patch)
treee0e687dfeb124dc697594717078b03ade27f5427 /src/net.cpp
parentMerge pull request #1215 from laanwj/2012_05_nogridtables (diff)
downloaddiscoin-3b6ed2294bc1c69b0232a3eb978df2ac4e08df48.tar.xz
discoin-3b6ed2294bc1c69b0232a3eb978df2ac4e08df48.zip
fix an incorrect if-clause in net.cpp
Diffstat (limited to 'src/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 7efe304fb..8603514f9 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++)