r26575 - trunk/freenet/src/freenet/client/async

[email protected]
Newsgroups gmane.network.freenet.cvs
Message-ID <[email protected]>
Author: toad
Date: 2009-04-06 22:27:27 +0000 (Mon, 06 Apr 2009)
New Revision: 26575

Modified:
   trunk/freenet/src/freenet/client/async/ClientRequestSchedulerCore.java
Log:
Remove duplicate isEmpty


Modified: trunk/freenet/src/freenet/client/async/ClientRequestSchedulerCore.java
===================================================================
--- trunk/freenet/src/freenet/client/async/ClientRequestSchedulerCore.java	2009-04-06 20:58:20 UTC (rev 26574)
+++ trunk/freenet/src/freenet/client/async/ClientRequestSchedulerCore.java	2009-04-06 22:27:27 UTC (rev 26575)
@@ -511,7 +511,7 @@
 					if (altReq != null) {
 						int prio = altReq.getPriorityClass(container);
 						if((prio < choosenPriorityClass || (prio == choosenPriorityClass && fixRetryCount(altReq.getRetryCount()) <= chosenTracker.getNumber()))
-								&& !altReq.isEmpty(container) && altReq != req) {
+								&& altReq != req) {
 							// Use the recent one instead
 							if(logMINOR)
 								Logger.minor(this, "Recently succeeded (transient) req "+altReq+" (prio="+altReq.getPriorityClass(container)+" retry count "+altReq.getRetryCount()+") is better than "+req+" (prio="+req.getPriorityClass(container)+" retry "+req.getRetryCount()+"), using that");
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.