Author: toad
Date: 2009-04-01 18:31:59 +0000 (Wed, 01 Apr 2009)
New Revision: 26317

Modified:
   branches/db4o/freenet/src/freenet/client/async/SimpleManifestPutter.java
Log:
Activation


Modified: 
branches/db4o/freenet/src/freenet/client/async/SimpleManifestPutter.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/SimpleManifestPutter.java    
2009-04-01 18:07:02 UTC (rev 26316)
+++ branches/db4o/freenet/src/freenet/client/async/SimpleManifestPutter.java    
2009-04-01 18:31:59 UTC (rev 26317)
@@ -470,21 +470,25 @@
                        }
                        if(oldSFI != null) {
                                Logger.error(this, "origSFI is set in 
removeFrom() on "+this+" for "+SimpleManifestPutter.this, new 
Exception("debug"));
+                               container.activate(oldSFI, 1);
                                oldSFI.cancel(container, context);
                                oldSFI.removeFrom(container, context);
                                if(oldState == oldSFI) oldState = null;
                        }
                        if(oldState != null) {
                                Logger.error(this, "currentState is set in 
removeFrom() on "+this+" for "+SimpleManifestPutter.this, new 
Exception("debug"));
+                               container.activate(oldState, 1);
                                oldState.cancel(container, context);
                                oldState.removeFrom(container, context);
                        }
                        if(cm != null) {
+                               container.activate(cm, 5);
                                cm.removeFrom(container);
                        }
                        if(metadata != null) {
                                // Possible if cancelled
                                Logger.error(this, "Metadata is set in 
removeFrom() on "+this+" for "+SimpleManifestPutter.this);
+                               container.activate(metadata, 1);
                                metadata.removeFrom(container);
                        }
                        // Data is responsibility of original caller (usually 
ClientPutDir), we don't support freeData atm

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to