Author: toad
Date: 2008-01-14 22:50:08 +0000 (Mon, 14 Jan 2008)
New Revision: 17042

Modified:
   trunk/freenet/src/freenet/client/async/SplitFileFetcherSegment.java
Log:
D'oh: removeSubSegments() only if we are actually going to decode!

Modified: trunk/freenet/src/freenet/client/async/SplitFileFetcherSegment.java
===================================================================
--- trunk/freenet/src/freenet/client/async/SplitFileFetcherSegment.java 
2008-01-14 22:42:39 UTC (rev 17041)
+++ trunk/freenet/src/freenet/client/async/SplitFileFetcherSegment.java 
2008-01-14 22:50:08 UTC (rev 17042)
@@ -180,10 +180,10 @@
                                }
                        }
                }
-               removeSubSegments();
                parentFetcher.parent.completedBlock(dontNotify);
                seg.possiblyRemoveFromParent();
                if(decodeNow) {
+                       removeSubSegments();
                        decode();
                }
        }


Reply via email to