forked from I2P_Developers/i2p.i2p
NTCP: Speed up allowConnection() (ticket #2381)
This commit is contained in:
@@ -614,7 +614,7 @@ public class NTCPTransport extends TransportImpl {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean allowConnection() {
|
public boolean allowConnection() {
|
||||||
return countActivePeers() < getMaxConnections();
|
return _conByIdent.size() < getMaxConnections();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** queue up afterSend call, which can take some time w/ jobs, etc */
|
/** queue up afterSend call, which can take some time w/ jobs, etc */
|
||||||
|
Reference in New Issue
Block a user