NTCP: Speed up allowConnection() (ticket #2381)

This commit is contained in:
zzz
2019-02-05 16:44:09 +00:00
parent 8a77db15d5
commit b82702393f

View File

@ -614,7 +614,7 @@ public class NTCPTransport extends TransportImpl {
}
public boolean allowConnection() {
return countActivePeers() < getMaxConnections();
return _conByIdent.size() < getMaxConnections();
}
/** queue up afterSend call, which can take some time w/ jobs, etc */