I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit bff518a0 authored by zzz's avatar zzz
Browse files

more efficient empty check

parent 0b293c51
No related branches found
No related tags found
No related merge requests found
......@@ -302,7 +302,7 @@ class BuildExecutor implements Runnable {
//int realBuilt = 0;
TunnelManagerFacade mgr = _context.tunnelManager();
if ( (mgr == null) || (mgr.selectInboundTunnel() == null) || (mgr.selectOutboundTunnel() == null) ) {
if ( (mgr == null) || (mgr.getFreeTunnelCount() <= 0) || (mgr.getOutboundTunnelCount() <= 0) ) {
// we don't have either inbound or outbound tunnels, so don't bother trying to build
// non-zero-hop tunnels
synchronized (_currentlyBuilding) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment