Author: toad
Date: 2009-04-01 14:15:20 +0000 (Wed, 01 Apr 2009)
New Revision: 26308
Modified:
branches/db4o/freenet/src/freenet/client/async/SingleFileInserter.java
Log:
Store earlier, simpler code and we could get deactivated
Modified: branches/db4o/freenet/src/freenet/client/async/SingleFileInserter.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/SingleFileInserter.java
2009-04-01 14:13:59 UTC (rev 26307)
+++ branches/db4o/freenet/src/freenet/client/async/SingleFileInserter.java
2009-04-01 14:15:20 UTC (rev 26308)
@@ -802,6 +802,7 @@
oldMetadataPutter = metadataPutter;
}
if(persistent) {
+ container.store(this);
if(oldSFI != null)
container.activate(oldSFI, 1);
if(oldMetadataPutter != null)
@@ -812,9 +813,6 @@
oldSFI.cancel(container, context);
if(oldMetadataPutter != null)
oldMetadataPutter.cancel(container, context);
- // Store before calling callback as callback may call
us.
- if(persistent)
- container.store(this);
cb.onFailure(e, this, container, context);
}
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs