Author: toad
Date: 2008-04-05 11:35:52 +0000 (Sat, 05 Apr 2008)
New Revision: 19010

Modified:
   trunk/freenet/src/freenet/client/async/ClientRequestScheduler.java
Log:
comments

Modified: trunk/freenet/src/freenet/client/async/ClientRequestScheduler.java
===================================================================
--- trunk/freenet/src/freenet/client/async/ClientRequestScheduler.java  
2008-04-05 11:35:02 UTC (rev 19009)
+++ trunk/freenet/src/freenet/client/async/ClientRequestScheduler.java  
2008-04-05 11:35:52 UTC (rev 19010)
@@ -602,10 +602,10 @@

                for(int i=0;i<reqs.length;i++) {
                        SendableRequest req = reqs[i];
-                       req.unregister(true); // Keep the subscription.
-                       // 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.
+                       // Unregister from the RGA's, but keep the pendingKeys 
and cooldown queue data.
+                       req.unregister(true);
+                       // Then can do innerRegister() (not register()).
+                       innerRegister(req);
                }
                starter.wakeUp();
        }


Reply via email to