Author: toad
Date: 2008-04-01 23:50:30 +0000 (Tue, 01 Apr 2008)
New Revision: 18902
Modified:
trunk/freenet/src/freenet/client/async/SplitFileFetcherSegment.java
Log:
Never let fetchedBlocks rise above minFetched.
Modified: trunk/freenet/src/freenet/client/async/SplitFileFetcherSegment.java
===================================================================
--- trunk/freenet/src/freenet/client/async/SplitFileFetcherSegment.java
2008-04-01 23:47:16 UTC (rev 18901)
+++ trunk/freenet/src/freenet/client/async/SplitFileFetcherSegment.java
2008-04-01 23:50:30 UTC (rev 18902)
@@ -181,11 +181,11 @@
checkBuckets[blockNo].setData(data);
} else
Logger.error(this, "Unrecognized block number:
"+blockNo, new Exception("error"));
- fetchedBlocks++;
- if(logMINOR) Logger.minor(this, "Fetched
"+fetchedBlocks+" blocks in onSuccess("+blockNo+")");
if(startedDecode) {
return;
} else {
+ fetchedBlocks++;
+ if(logMINOR) Logger.minor(this, "Fetched
"+fetchedBlocks+" blocks in onSuccess("+blockNo+")");
decodeNow = (fetchedBlocks >= minFetched);
if(decodeNow) {
startedDecode = true;