Author: toad
Date: 2007-02-20 17:08:09 +0000 (Tue, 20 Feb 2007)
New Revision: 11848

Modified:
   trunk/freenet/src/freenet/client/async/SplitFileInserterSegment.java
Log:
Doh, that was inserts.

Modified: trunk/freenet/src/freenet/client/async/SplitFileInserterSegment.java
===================================================================
--- trunk/freenet/src/freenet/client/async/SplitFileInserterSegment.java        
2007-02-20 17:07:14 UTC (rev 11847)
+++ trunk/freenet/src/freenet/client/async/SplitFileInserterSegment.java        
2007-02-20 17:08:09 UTC (rev 11848)
@@ -59,7 +59,7 @@
                dataBlockInserters = new SingleBlockInserter[dataBlocks.length];
                checkBlockInserters = new 
SingleBlockInserter[checkBlocks.length];
                parent.parent.addBlocks(dataURIs.length+checkURIs.length);
-               parent.parent.addMustSucceedBlocks(dataURIs.length);
+               
parent.parent.addMustSucceedBlocks(dataURIs.length+checkURIs.length);
                this.segNo = segNo;
        }

@@ -227,7 +227,7 @@
                                        throw new ResumeException("Missing data 
block "+i+" and need to reconstruct check blocks");
                }
                parent.parent.addBlocks(dataURIs.length+checkURIs.length);
-               parent.parent.addMustSucceedBlocks(dataURIs.length);
+               
parent.parent.addMustSucceedBlocks(dataURIs.length+checkURIs.length);
        }

        public synchronized SimpleFieldSet getProgressFieldset() {


Reply via email to