mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
backport 9008: Remove assert(nMaxInbound > 0) (#1548)
This commit is contained in:
parent
82851b439c
commit
7707c07897
@ -1012,7 +1012,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…
Reference in New Issue
Block a user