mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 11:57:28 -03:00
Merge pull request #1792 from Diapolo/rem_double_errfunc
replace 2x WSAGetLastError() with 1x WSAGetLastError() call
This commit is contained in:
commit
97e02a8d52
1 changed files with 3 additions and 2 deletions
|
@ -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…
Reference in a new issue