Author: toad
Date: 2008-07-24 21:20:27 +0000 (Thu, 24 Jul 2008)
New Revision: 21384

Modified:
   branches/db4o/freenet/src/freenet/client/async/SplitFileFetcherSegment.java
Log:
doh

Modified: 
branches/db4o/freenet/src/freenet/client/async/SplitFileFetcherSegment.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/SplitFileFetcherSegment.java 
2008-07-24 21:18:14 UTC (rev 21383)
+++ branches/db4o/freenet/src/freenet/client/async/SplitFileFetcherSegment.java 
2008-07-24 21:20:27 UTC (rev 21384)
@@ -358,10 +358,6 @@
                                if(data == null) throw new 
NullPointerException();
                                if(persistent) container.activate(data, 1);
                                BucketTools.copyTo(data, os, Long.MAX_VALUE);
-                               if(persistent) {
-                                       container.deactivate(data, 1);
-                                       container.deactivate(status, 1);
-                               }
                        }
                        if(logMINOR) Logger.minor(this, "Copied data");
                        os.close();
@@ -371,6 +367,7 @@
                        if(codec == null || !isCollectingBinaryBlob(parent))
                                
parentFetcher.segmentFinished(SplitFileFetcherSegment.this, container, context);
                        if(persistent) container.set(this);
+                       // Leave active before queueing
                } catch (IOException e) {
                        Logger.normal(this, "Caught bucket error?: "+e, e);
                        synchronized(this) {


Reply via email to