This commit is contained in:
zzz
2010-06-06 20:38:19 +00:00
parent c20bef3731
commit 27eb7e46d0

View File

@ -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 */