diff options
| author | Philip Kaufmann <[email protected]> | 2012-09-05 22:20:26 +0200 |
|---|---|---|
| committer | Philip Kaufmann <[email protected]> | 2012-09-05 22:20:26 +0200 |
| commit | 4bd34b4966f59ce109406754eae7a6fd473837b6 (patch) | |
| tree | 2635c507654572e629fc980786b7d6459c4feb0b /src/net.cpp | |
| parent | Bump version number for 0.7.0rc2 (diff) | |
| download | discoin-4bd34b4966f59ce109406754eae7a6fd473837b6.tar.xz discoin-4bd34b4966f59ce109406754eae7a6fd473837b6.zip | |
replace 2x WSAGetLastError() with 1x WSAGetLastError() call
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) { |