Author: toad
Date: 2008-06-26 14:50:46 +0000 (Thu, 26 Jun 2008)
New Revision: 20741
Modified:
branches/db4o/freenet/src/freenet/client/async/ClientPutter.java
Log:
Deactivate after scheduling.
Modified: branches/db4o/freenet/src/freenet/client/async/ClientPutter.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/ClientPutter.java
2008-06-26 14:46:48 UTC (rev 20740)
+++ branches/db4o/freenet/src/freenet/client/async/ClientPutter.java
2008-06-26 14:50:46 UTC (rev 20741)
@@ -132,8 +132,11 @@
oldProgress = null;
cancel = cancelled;
}
- if(persistent())
+ if(persistent()) {
container.set(this);
+ // It has scheduled, we can safely deactivate
it now, so it won't hang around in memory.
+ container.deactivate(currentState, 1);
+ }
if(cancel) {
onFailure(new
InsertException(InsertException.CANCELLED), null, container, context);
return false;