Author: nextgens
Date: 2009-01-27 15:01:13 +0000 (Tue, 27 Jan 2009)
New Revision: 25315

Modified:
   trunk/freenet/src/freenet/support/PooledExecutor.java
Log:
no need to decrement twice (but we do need to remove() twice)

Modified: trunk/freenet/src/freenet/support/PooledExecutor.java
===================================================================
--- trunk/freenet/src/freenet/support/PooledExecutor.java       2009-01-27 
14:50:31 UTC (rev 25314)
+++ trunk/freenet/src/freenet/support/PooledExecutor.java       2009-01-27 
15:01:13 UTC (rev 25315)
@@ -70,7 +70,6 @@
                                jobCount++;
                                if(!waitingThreads[prio - 1].isEmpty()) {
                                        t = waitingThreads[prio - 
1].remove(waitingThreads[prio - 1].size() - 1);
-                                       waitingThreadsCount--;
                                        if(logMINOR)
                                                Logger.minor(this, "Reusing 
thread " + t);
                                } else {

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to