diff options
| author | Jeff Garzik <[email protected]> | 2012-05-09 07:50:27 -0700 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2012-05-09 07:50:27 -0700 |
| commit | d54e6e8359f814e217365a35c222d9d461d0716e (patch) | |
| tree | 7fdbd4f85324683de3a31ff1ac52fd5851fed3e9 /src/net.cpp | |
| parent | Merge pull request #1230 from sipa/warnings (diff) | |
| parent | fix an incorrect if-clause in net.cpp (diff) | |
| download | discoin-d54e6e8359f814e217365a35c222d9d461d0716e.tar.xz discoin-d54e6e8359f814e217365a35c222d9d461d0716e.zip | |
Merge pull request #1225 from Diapolo/net_cpp_if_clause
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++) |