Author: toad
Date: 2008-07-12 01:24:26 +0000 (Sat, 12 Jul 2008)
New Revision: 21087

Modified:
   branches/db4o/freenet/src/freenet/client/async/PersistentCooldownQueue.java
Log:
Off-by-one with potentially catastrophic impact

Modified: 
branches/db4o/freenet/src/freenet/client/async/PersistentCooldownQueue.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/PersistentCooldownQueue.java 
2008-07-12 01:02:54 UTC (rev 21086)
+++ branches/db4o/freenet/src/freenet/client/async/PersistentCooldownQueue.java 
2008-07-12 01:24:26 UTC (rev 21087)
@@ -89,7 +89,7 @@
                // matter very much if they're not in order.
                ObjectSet results = container.query(new Predicate() {
                        public boolean match(PersistentCooldownQueueItem 
persistentCooldownQueueItem) {
-                               if(persistentCooldownQueueItem.time > now) 
return false;
+                               if(persistentCooldownQueueItem.time >= now) 
return false;
                                if(persistentCooldownQueueItem.parent != 
PersistentCooldownQueue.this) return false;
                                return true;
                        }


Reply via email to