From 27eb7e46d017d5a5a36abdb6d8657be6b39d6fe6 Mon Sep 17 00:00:00 2001 From: zzz <zzz@mail.i2p> Date: Sun, 6 Jun 2010 20:38:19 +0000 Subject: [PATCH] tweak 2 --- .../java/src/net/i2p/client/streaming/ConnThrottler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/streaming/java/src/net/i2p/client/streaming/ConnThrottler.java b/apps/streaming/java/src/net/i2p/client/streaming/ConnThrottler.java index 5383873e9c..edf7963fc3 100644 --- a/apps/streaming/java/src/net/i2p/client/streaming/ConnThrottler.java +++ b/apps/streaming/java/src/net/i2p/client/streaming/ConnThrottler.java @@ -27,7 +27,6 @@ class ConnThrottler { ConnThrottler(int max, int totalMax, long period) { _max = max; _totalMax = totalMax; - SimpleScheduler.getInstance().addPeriodicEvent(new Cleaner(), period); if (max > 0) this.counter = new ObjectCounter(); else @@ -36,6 +35,7 @@ class ConnThrottler { _currentTotal = new AtomicInteger(); else _currentTotal = null; + SimpleScheduler.getInstance().addPeriodicEvent(new Cleaner(), period); } /** increments before checking */ -- GitLab