Author: toad
Date: 2008-02-18 11:40:07 +0000 (Mon, 18 Feb 2008)
New Revision: 18033
Modified:
trunk/freenet/src/freenet/client/async/RequestCooldownQueue.java
Log:
We won't find it.
Modified: trunk/freenet/src/freenet/client/async/RequestCooldownQueue.java
===================================================================
--- trunk/freenet/src/freenet/client/async/RequestCooldownQueue.java
2008-02-18 11:37:13 UTC (rev 18032)
+++ trunk/freenet/src/freenet/client/async/RequestCooldownQueue.java
2008-02-18 11:40:07 UTC (rev 18033)
@@ -147,6 +147,7 @@
* @return True if the key was found.
*/
synchronized boolean removeKey(Key key, long time) {
+ if(time <= 0) return false; // We won't find it.
logMINOR = Logger.shouldLog(Logger.MINOR, this);
if(holes < 0) Logger.error(this, "holes = "+holes+" !!");
if(logMINOR) Logger.minor(this, "Remove key "+key+" at time
"+time+" startPtr="+startPtr+" endPtr="+endPtr+" holes="+holes+"
keys.length="+keys.length);