forked from I2P_Developers/i2p.i2p
* LoadTestManager: Don't instantiate, it's disabled
This commit is contained in:
@ -79,7 +79,7 @@ public class LoadTestManager {
|
||||
private static final boolean DEFAULT_ENABLE = false;
|
||||
|
||||
/** disable all load testing for the moment */
|
||||
private static final boolean FORCE_DISABLE = true;
|
||||
public static final boolean FORCE_DISABLE = true;
|
||||
|
||||
public static boolean isEnabled(I2PAppContext ctx) {
|
||||
if (FORCE_DISABLE) return false;
|
||||
|
@ -45,7 +45,8 @@ public class TunnelPoolManager implements TunnelManagerFacade {
|
||||
|
||||
_clientInboundPools = new HashMap(4);
|
||||
_clientOutboundPools = new HashMap(4);
|
||||
_loadTestManager = new LoadTestManager(_context);
|
||||
if (! LoadTestManager.FORCE_DISABLE)
|
||||
_loadTestManager = new LoadTestManager(_context);
|
||||
|
||||
_isShutdown = false;
|
||||
_executor = new BuildExecutor(ctx, this);
|
||||
@ -305,7 +306,8 @@ public class TunnelPoolManager implements TunnelManagerFacade {
|
||||
|
||||
void buildComplete(PooledTunnelCreatorConfig cfg) {
|
||||
buildComplete();
|
||||
_loadTestManager.addTunnelTestCandidate(cfg);
|
||||
if (_loadTestManager != null)
|
||||
_loadTestManager.addTunnelTestCandidate(cfg);
|
||||
if (cfg.getLength() > 1) {
|
||||
TunnelPool pool = cfg.getTunnelPool();
|
||||
if (pool == null) {
|
||||
|
Reference in New Issue
Block a user