diff options
| author | Philip Kaufmann <[email protected]> | 2012-05-08 23:02:48 +0200 |
|---|---|---|
| committer | Philip Kaufmann <[email protected]> | 2012-05-09 09:11:13 +0200 |
| commit | 3b6ed2294bc1c69b0232a3eb978df2ac4e08df48 (patch) | |
| tree | e0e687dfeb124dc697594717078b03ade27f5427 /src/net.cpp | |
| parent | Merge pull request #1215 from laanwj/2012_05_nogridtables (diff) | |
| download | discoin-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.cpp | 2 |
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++) |