Author: toad
Date: 2008-06-20 12:41:13 +0000 (Fri, 20 Jun 2008)
New Revision: 20517
Modified:
branches/db4o/freenet/src/freenet/client/async/SingleBlockInserter.java
Log:
Don't send the request if we've already finished.
Modified:
branches/db4o/freenet/src/freenet/client/async/SingleBlockInserter.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/SingleBlockInserter.java
2008-06-20 12:38:23 UTC (rev 20516)
+++ branches/db4o/freenet/src/freenet/client/async/SingleBlockInserter.java
2008-06-20 12:41:13 UTC (rev 20517)
@@ -374,6 +374,7 @@
}
public synchronized Object chooseKey(KeysFetchingLocally ignored,
ObjectContainer container, ClientContext context) {
+ if(finished) return null;
// Ignore KeysFetchingLocally, it's for requests.
return getBlock(container, context);
}