Author: toad
Date: 2009-04-02 23:36:26 +0000 (Thu, 02 Apr 2009)
New Revision: 26393
Modified:
trunk/freenet/src/freenet/client/async/ClientRequestSchedulerCore.java
Log:
Don't miss trying offered keys just because the priority is null
Modified: trunk/freenet/src/freenet/client/async/ClientRequestSchedulerCore.java
===================================================================
--- trunk/freenet/src/freenet/client/async/ClientRequestSchedulerCore.java
2009-04-02 23:06:45 UTC (rev 26392)
+++ trunk/freenet/src/freenet/client/async/ClientRequestSchedulerCore.java
2009-04-02 23:36:26 UTC (rev 26393)
@@ -282,8 +282,8 @@
fuzz++;
continue; // Don't return because first round
may be higher with soft scheduling
}
- if((result != null) &&
- (!result.isEmpty()) || (tryOfferedKeys
&& !offeredKeys[priority].isEmpty(container))) {
+ if(((result != null) && (!result.isEmpty()))
+ || (tryOfferedKeys &&
!offeredKeys[priority].isEmpty(container))) {
if(logMINOR) Logger.minor(this, "using priority
: "+priority);
return priority;
}
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs