Author: toad
Date: 2007-05-02 18:04:37 +0000 (Wed, 02 May 2007)
New Revision: 13104

Modified:
   trunk/freenet/src/freenet/client/async/SplitFileFetcherSubSegment.java
Log:
Don't remove from parent at this point. Is messy, and may cause problems 
depending on when canRemove is called.

Modified: trunk/freenet/src/freenet/client/async/SplitFileFetcherSubSegment.java
===================================================================
--- trunk/freenet/src/freenet/client/async/SplitFileFetcherSubSegment.java      
2007-05-02 16:46:59 UTC (rev 13103)
+++ trunk/freenet/src/freenet/client/async/SplitFileFetcherSubSegment.java      
2007-05-02 18:04:37 UTC (rev 13104)
@@ -216,9 +216,10 @@

        public synchronized boolean canRemove() {
                if(blockNums.size() < 2) {
+                       // Can be removed, if the one key is processed.
+                       // Once it has been processed, we may need to be 
reinstated.
                        if(Logger.shouldLog(Logger.MINOR, this))
                                Logger.minor(this, "Removing "+this+" in 
canRemove()");
-                       segment.removeSeg(this);
                        return true;
                } else return false;
        }


Reply via email to