Author: toad
Date: 2008-02-22 22:58:33 +0000 (Fri, 22 Feb 2008)
New Revision: 18113
Modified:
trunk/freenet/src/freenet/client/async/ClientRequestScheduler.java
Log:
removePendingKey(): removeKey from cooldown queue only for the SendableGet
which we actually removed.
Modified: trunk/freenet/src/freenet/client/async/ClientRequestScheduler.java
===================================================================
--- trunk/freenet/src/freenet/client/async/ClientRequestScheduler.java
2008-02-22 22:26:53 UTC (rev 18112)
+++ trunk/freenet/src/freenet/client/async/ClientRequestScheduler.java
2008-02-22 22:58:33 UTC (rev 18113)
@@ -539,14 +539,7 @@
for(int i=0;i<offeredKeys.length;i++)
offeredKeys[i].remove(key);
}
- if(o instanceof SendableGet)
- cooldownQueue.removeKey(key,
((SendableGet)o).getCooldownWakeupByKey(key));
- else if(o instanceof SendableGet[]) {
- SendableGet[] gets = (SendableGet[]) o;
- for(int i=0;i<gets.length;i++) {
- cooldownQueue.removeKey(key,
gets[i].getCooldownWakeupByKey(key));
- }
- }
+ cooldownQueue.removeKey(key,
getter.getCooldownWakeupByKey(key));
}
/**