Author: toad
Date: 2007-02-21 03:25:11 +0000 (Wed, 21 Feb 2007)
New Revision: 11875
Modified:
trunk/freenet/src/freenet/client/async/SplitFileFetcherSegment.java
Log:
Trivial bug causing us to re-file blocks on the old retry level.
Modified: trunk/freenet/src/freenet/client/async/SplitFileFetcherSegment.java
===================================================================
--- trunk/freenet/src/freenet/client/async/SplitFileFetcherSegment.java
2007-02-21 02:29:06 UTC (rev 11874)
+++ trunk/freenet/src/freenet/client/async/SplitFileFetcherSegment.java
2007-02-21 03:25:11 UTC (rev 11875)
@@ -310,14 +310,14 @@
synchronized(this) {
int maxTries = blockFetchContext.maxNonSplitfileRetries;
if(blockNo < dataKeys.length) {
- tries = dataRetries[blockNo]++;
+ tries = ++dataRetries[blockNo];
if(tries > maxTries && maxTries >= 0) {
onFatalFailure(e, blockNo);
return;
}
} else {
blockNo -= dataKeys.length;
- tries = checkRetries[blockNo]++;
+ tries = ++checkRetries[blockNo];
if(tries > maxTries && maxTries >= 0) {
onFatalFailure(e, blockNo);
return;