Author: toad
Date: 2006-10-05 19:47:04 +0000 (Thu, 05 Oct 2006)
New Revision: 10616
Modified:
trunk/freenet/src/freenet/client/async/BaseSingleFileFetcher.java
Log:
I was wrong.
Modified: trunk/freenet/src/freenet/client/async/BaseSingleFileFetcher.java
===================================================================
--- trunk/freenet/src/freenet/client/async/BaseSingleFileFetcher.java
2006-10-05 18:56:37 UTC (rev 10615)
+++ trunk/freenet/src/freenet/client/async/BaseSingleFileFetcher.java
2006-10-05 19:47:04 UTC (rev 10616)
@@ -62,8 +62,8 @@
retryCount++;
if(Logger.shouldLog(Logger.MINOR, this))
Logger.minor(this, "Attempting to retry... (max
"+maxRetries+", current "+retryCount+")");
- // We want 0, 1, ... maxRetries i.e. maxRetries+1 attempts
(maxRetries=0 => try once, NO RETRIES)
- if((retryCount < maxRetries) || (maxRetries == -1)) {
+ // We want 0, 1, ... maxRetries i.e. maxRetries+1 attempts
(maxRetries=0 => try once, no retries, maxRetries=1 = original try + 1 retry)
+ if((retryCount <= maxRetries) || (maxRetries == -1)) {
schedule();
return true;
}