mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-03 09:56:38 -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;
|
||||
int nInbound = 0;
|
||||
int nMaxInbound = nMaxConnections - (nMaxOutbound + nMaxFeeler);
|
||||
assert(nMaxInbound > 0);
|
||||
|
||||
if (hSocket != INVALID_SOCKET)
|
||||
if (!addr.SetSockAddr((const struct sockaddr*)&sockaddr))
|
||||
|
|
Loading…
Add table
Reference in a new issue