diff options
| author | Gavin Andresen <[email protected]> | 2012-09-06 16:27:08 -0400 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2012-09-06 16:27:08 -0400 |
| commit | 004fa1441cc9fac1fb8c46f3685fa2cadc077475 (patch) | |
| tree | 8e79e6ca4711916475c91c1da6b32d4e48a69d4a /src/net.cpp | |
| parent | Fix mac .dmg packager for latest macports qt4 (diff) | |
| parent | Build doc updates (diff) | |
| download | discoin-004fa1441cc9fac1fb8c46f3685fa2cadc077475.tar.xz discoin-004fa1441cc9fac1fb8c46f3685fa2cadc077475.zip | |
Merge branch 'master' of github.com:bitcoin/bitcoin
Diffstat (limited to 'src/net.cpp')
| -rw-r--r-- | src/net.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net.cpp b/src/net.cpp index 76e44a6cf..11bade6bb 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -823,8 +823,9 @@ void ThreadSocketHandler2(void* parg) if (hSocket == INVALID_SOCKET) { - if (WSAGetLastError() != WSAEWOULDBLOCK) - printf("socket error accept failed: %d\n", WSAGetLastError()); + int nErr = WSAGetLastError(); + if (nErr != WSAEWOULDBLOCK) + printf("socket error accept failed: %d\n", nErr); } else if (nInbound >= GetArg("-maxconnections", 125) - MAX_OUTBOUND_CONNECTIONS) { |