Author: toad
Date: 2009-02-14 16:04:55 +0000 (Sat, 14 Feb 2009)
New Revision: 25650

Modified:
   branches/db4o/freenet/src/freenet/client/async/PersistentChosenRequest.java
Log:
When a PCR finishes, is an insert, and has more to do, immediately requeue it. 
The rest of the code assumes that new requests will be sent to the request 
queue immediately, therefore if it is full we don't need to fill it.


Modified: 
branches/db4o/freenet/src/freenet/client/async/PersistentChosenRequest.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/PersistentChosenRequest.java 
2009-02-14 16:03:10 UTC (rev 25649)
+++ branches/db4o/freenet/src/freenet/client/async/PersistentChosenRequest.java 
2009-02-14 16:04:55 UTC (rev 25650)
@@ -218,7 +218,8 @@
                        // do not separate retries into separate 
SendableInsert's.
                        if(!container.ext().isActive(request))
                                container.activate(request, 1);
-                       if(!request.isEmpty(container)) {
+                       if((!request.isEmpty(container)) && 
(!request.isCancelled(container))) {
+                               
request.getScheduler(context).maybeAddToStarterQueue(request, container, null);
                                request.getScheduler(context).wakeStarter();
                        }
                }

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to