Author: toad
Date: 2007-10-26 22:42:41 +0000 (Fri, 26 Oct 2007)
New Revision: 15606
Modified:
trunk/freenet/src/freenet/client/async/USKInserter.java
Log:
Fix "Failed blocks: 0, Fatally failed blocks: 0, Successful blocks: 1, Total
blocks: 2 but success?!" when inserting a USK and finding that its value is
already identical to what you wanted to insert.
Modified: trunk/freenet/src/freenet/client/async/USKInserter.java
===================================================================
--- trunk/freenet/src/freenet/client/async/USKInserter.java 2007-10-26
22:33:53 UTC (rev 15605)
+++ trunk/freenet/src/freenet/client/async/USKInserter.java 2007-10-26
22:42:41 UTC (rev 15606)
@@ -91,6 +91,7 @@
if(Arrays.equals(myData, hisData)) {
// Success!
cb.onEncode(pubUSK.copy(edition), this);
+ parent.addMustSucceedBlocks(1);
cb.onSuccess(this);
finished = true;
sbi = null;