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

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

conn throttler fix when only total configured

parent 7bfb5b1b
No related branches found
No related tags found
No related merge requests found
...@@ -27,12 +27,11 @@ class ConnThrottler { ...@@ -27,12 +27,11 @@ class ConnThrottler {
ConnThrottler(int max, int totalMax, long period) { ConnThrottler(int max, int totalMax, long period) {
_max = max; _max = max;
_totalMax = totalMax; _totalMax = totalMax;
if (max > 0) { SimpleScheduler.getInstance().addPeriodicEvent(new Cleaner(), period);
SimpleScheduler.getInstance().addPeriodicEvent(new Cleaner(), period); if (max > 0)
this.counter = new ObjectCounter(); this.counter = new ObjectCounter();
} else { else
this.counter = null; this.counter = null;
}
if (totalMax > 0) if (totalMax > 0)
_currentTotal = new AtomicInteger(); _currentTotal = new AtomicInteger();
else else
......
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