Author: toad
Date: 2008-09-27 17:17:29 +0000 (Sat, 27 Sep 2008)
New Revision: 22864

Modified:
   branches/db4o/freenet/src/freenet/client/FECQueue.java
Log:
Fix NoSuchElementException


Modified: branches/db4o/freenet/src/freenet/client/FECQueue.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/FECQueue.java      2008-09-27 
16:51:55 UTC (rev 22863)
+++ branches/db4o/freenet/src/freenet/client/FECQueue.java      2008-09-27 
17:17:29 UTC (rev 22864)
@@ -126,7 +126,7 @@
                                                        while(total >= 
maxPersistentQueueCacheSize && !persistentQueueCache[i].isEmpty()) {
                                                                if(logMINOR)
                                                                        
Logger.minor(this, "Removing low priority job from cache, total now "+total);
-                                                               
persistentQueueCache[job.priority].removeLast();
+                                                               
persistentQueueCache[i].removeLast();
                                                                total--;
                                                        }
                                                }


Reply via email to