Author: toad
Date: 2008-02-16 22:58:02 +0000 (Sat, 16 Feb 2008)
New Revision: 18016

Modified:
   trunk/freenet/src/freenet/support/PooledExecutor.java
Log:
Doh - higher is higher for java priorities

Modified: trunk/freenet/src/freenet/support/PooledExecutor.java
===================================================================
--- trunk/freenet/src/freenet/support/PooledExecutor.java       2008-02-16 
22:48:54 UTC (rev 18015)
+++ trunk/freenet/src/freenet/support/PooledExecutor.java       2008-02-16 
22:58:02 UTC (rev 18016)
@@ -66,7 +66,7 @@
                                        t = (MyThread) 
waitingThreads[prio-1].remove(waitingThreads[prio-1].size()-1);
                                } else {
                                        // Must create new thread
-                                       if((!fromTicker) && 
NativeThread.usingNativeCode() && prio < Thread.currentThread().getPriority()) {
+                                       if((!fromTicker) && 
NativeThread.usingNativeCode() && prio > Thread.currentThread().getPriority()) {
                                                // Run on ticker
                                                ticker.queueTimedJob(job, 0, 
true);
                                                return;


Reply via email to