Author: toad
Date: 2008-08-29 21:35:46 +0000 (Fri, 29 Aug 2008)
New Revision: 22224
Modified:
branches/db4o/freenet/src/freenet/client/async/SplitFileFetcherSegment.java
Log:
onGotKey(): return false immediately if finished or started decode.
Modified:
branches/db4o/freenet/src/freenet/client/async/SplitFileFetcherSegment.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/SplitFileFetcherSegment.java
2008-08-29 21:34:55 UTC (rev 22223)
+++ branches/db4o/freenet/src/freenet/client/async/SplitFileFetcherSegment.java
2008-08-29 21:35:46 UTC (rev 22224)
@@ -1137,6 +1137,9 @@
* and then "NOT IN BLOOM FILTER" errors, or worse, false negatives.
*/
public synchronized boolean onGotKey(Key key, KeyBlock block,
ObjectContainer container, ClientContext context) {
+ if(finished || startedDecode) {
+ return false;
+ }
int blockNum = this.getBlockNumber(key, container);
if(blockNum < 0) return false;
ClientCHK ckey = this.getBlockKey(blockNum, container);