Author: toad
Date: 2009-02-25 23:02:46 +0000 (Wed, 25 Feb 2009)
New Revision: 25826
Modified:
branches/db4o/freenet/src/freenet/node/fcp/ClientGet.java
Log:
Activate before removal
Modified: branches/db4o/freenet/src/freenet/node/fcp/ClientGet.java
===================================================================
--- branches/db4o/freenet/src/freenet/node/fcp/ClientGet.java 2009-02-25
23:00:42 UTC (rev 25825)
+++ branches/db4o/freenet/src/freenet/node/fcp/ClientGet.java 2009-02-25
23:02:46 UTC (rev 25826)
@@ -413,8 +413,10 @@
}
returnBucket = new FileBucket(targetFile,
false, true, false, false, false);
}
- if(persistenceType == PERSIST_FOREVER &&
progressPending != null)
+ if(persistenceType == PERSIST_FOREVER &&
progressPending != null) {
+ container.activate(progressPending, 1);
progressPending.removeFrom(container);
+ }
progressPending = null;
this.foundDataLength = returnBucket.size();
if(!binaryBlob)
@@ -495,7 +497,10 @@
progressPending = msg;
if(persistenceType == ClientRequest.PERSIST_FOREVER) {
container.store(this);
- if(oldProgress != null)
oldProgress.removeFrom(container);
+ if(oldProgress != null) {
+ container.activate(oldProgress, 1);
+ oldProgress.removeFrom(container);
+ }
}
}
if(persistenceType == PERSIST_FOREVER)
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs