Browse Source

replace 2x WSAGetLastError() with 1x WSAGetLastError() call

pull/1/head
Philip Kaufmann 10 years ago
parent
commit
4bd34b4966
  1. 5
      src/net.cpp

5
src/net.cpp

@ -823,8 +823,9 @@ void ThreadSocketHandler2(void* parg) @@ -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)
{

Loading…
Cancel
Save