mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-09 10:43:19 -05:00
Merge #9008: [net] Remove assert(nMaxInbound > 0)
fa1c3c2
[net] Remove assert(nMaxInbound > 0) (MarcoFalke)
This commit is contained in:
commit
f14f07cb94
1 changed files with 0 additions and 1 deletions
|
@ -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))
|
||||||
|
|
Loading…
Add table
Reference in a new issue