Author: toad
Date: 2009-03-11 16:39:31 +0000 (Wed, 11 Mar 2009)
New Revision: 25991

Modified:
   branches/db4o/freenet/src/freenet/client/async/SingleFileInserter.java
Log:
Store before calling callback


Modified: branches/db4o/freenet/src/freenet/client/async/SingleFileInserter.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/SingleFileInserter.java      
2009-03-11 16:38:34 UTC (rev 25990)
+++ branches/db4o/freenet/src/freenet/client/async/SingleFileInserter.java      
2009-03-11 16:39:31 UTC (rev 25991)
@@ -781,9 +781,10 @@
                        if(oldMetadataPutter != null)
                                oldMetadataPutter.cancel(container, context);
                        finished = true;
-                       cb.onFailure(e, this, container, context);
+                       // Store before calling callback as callback may call 
us.
                        if(persistent)
                                container.store(this);
+                       cb.onFailure(e, this, container, context);
                }
 
                public BaseClientPutter getParent() {

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

Reply via email to