|
|
@ -970,7 +970,6 @@ void CConnman::AcceptConnection(const ListenSocket& hListenSocket) { |
|
|
|
CAddress addr; |
|
|
|
CAddress addr; |
|
|
|
int nInbound = 0; |
|
|
|
int nInbound = 0; |
|
|
|
int nMaxInbound = nMaxConnections - (nMaxOutbound + nMaxFeeler); |
|
|
|
int nMaxInbound = nMaxConnections - (nMaxOutbound + nMaxFeeler); |
|
|
|
assert(nMaxInbound > 0); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (hSocket != INVALID_SOCKET) |
|
|
|
if (hSocket != INVALID_SOCKET) |
|
|
|
if (!addr.SetSockAddr((const struct sockaddr*)&sockaddr)) |
|
|
|
if (!addr.SetSockAddr((const struct sockaddr*)&sockaddr)) |
|
|
|