Author: toad
Date: 2008-07-22 15:53:39 +0000 (Tue, 22 Jul 2008)
New Revision: 21309
Modified:
branches/db4o/freenet/src/freenet/client/async/ClientRequester.java
Log:
Store the updated successfulBlocks even if dontNotify.
Don't update successfulBlocks if cancelled.
Modified: branches/db4o/freenet/src/freenet/client/async/ClientRequester.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/ClientRequester.java
2008-07-22 15:51:32 UTC (rev 21308)
+++ branches/db4o/freenet/src/freenet/client/async/ClientRequester.java
2008-07-22 15:53:39 UTC (rev 21309)
@@ -109,11 +109,11 @@
if(Logger.shouldLog(Logger.MINOR, this))
Logger.minor(this, "Completed block ("+dontNotify+ "):
total="+totalBlocks+" success="+successfulBlocks+" failed="+failedBlocks+"
fatally="+fatallyFailedBlocks+" finalised="+blockSetFinalized+"
required="+minSuccessBlocks+" on "+this);
synchronized(this) {
+ if(cancelled) return;
successfulBlocks++;
- if(cancelled) return;
- if(dontNotify) return;
}
if(persistent()) container.set(this);
+ if(dontNotify) return;
notifyClients(container, context);
}