Author: toad
Date: 2008-01-25 12:20:22 +0000 (Fri, 25 Jan 2008)
New Revision: 17265

Modified:
   trunk/freenet/src/freenet/client/async/SingleBlockInserter.java
Log:
Call parent.completedBlock() first, so that we don't get a ... but success?! 
error.

Modified: trunk/freenet/src/freenet/client/async/SingleBlockInserter.java
===================================================================
--- trunk/freenet/src/freenet/client/async/SingleBlockInserter.java     
2008-01-25 12:11:53 UTC (rev 17264)
+++ trunk/freenet/src/freenet/client/async/SingleBlockInserter.java     
2008-01-25 12:20:22 UTC (rev 17265)
@@ -220,8 +220,8 @@
                if(getCHKOnly) {
                        ClientKeyBlock block = encode();
                        cb.onEncode(block.getClientKey(), this);
+                       parent.completedBlock(false);
                        cb.onSuccess(this);
-                       parent.completedBlock(false);
                        finished = true;
                } else {
                        getScheduler().register(this);


Reply via email to