Author: toad
Date: 2008-04-05 11:35:02 +0000 (Sat, 05 Apr 2008)
New Revision: 19009
Modified:
trunk/freenet/src/freenet/client/async/ClientRequestScheduler.java
Log:
Don't resetCooldownTimes(). Comments.
Modified: trunk/freenet/src/freenet/client/async/ClientRequestScheduler.java
===================================================================
--- trunk/freenet/src/freenet/client/async/ClientRequestScheduler.java
2008-04-05 11:31:44 UTC (rev 19008)
+++ trunk/freenet/src/freenet/client/async/ClientRequestScheduler.java
2008-04-05 11:35:02 UTC (rev 19009)
@@ -603,9 +603,8 @@
for(int i=0;i<reqs.length;i++) {
SendableRequest req = reqs[i];
req.unregister(true); // Keep the subscription.
- // If we don't reset the cooldown times, the block will
be lost after 1 failed retry.
- if(req instanceof SendableGet)
- ((SendableGet)req).resetCooldownTimes();
+ // Since we keep the subscription, the blocks are not
removed from the cooldown queue,
+ // and there is no need to call resetCooldownTimes().
innerRegister(req); // innerRegister() doesn't
subscribe to keys.
}
starter.wakeUp();