mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-10 10:52:31 -05:00
replace 2x WSAGetLastError() with 1x WSAGetLastError() call
This commit is contained in:
parent
8788221761
commit
4bd34b4966
1 changed files with 3 additions and 2 deletions
|
@ -823,8 +823,9 @@ void ThreadSocketHandler2(void* parg)
|
||||||
|
|
||||||
if (hSocket == INVALID_SOCKET)
|
if (hSocket == INVALID_SOCKET)
|
||||||
{
|
{
|
||||||
if (WSAGetLastError() != WSAEWOULDBLOCK)
|
int nErr = WSAGetLastError();
|
||||||
printf("socket error accept failed: %d\n", WSAGetLastError());
|
if (nErr != WSAEWOULDBLOCK)
|
||||||
|
printf("socket error accept failed: %d\n", nErr);
|
||||||
}
|
}
|
||||||
else if (nInbound >= GetArg("-maxconnections", 125) - MAX_OUTBOUND_CONNECTIONS)
|
else if (nInbound >= GetArg("-maxconnections", 125) - MAX_OUTBOUND_CONNECTIONS)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue