Author: toad
Date: 2009-03-27 14:38:32 +0000 (Fri, 27 Mar 2009)
New Revision: 26233
Modified:
branches/db4o/freenet/src/freenet/client/async/ClientGetter.java
Log:
Store a bit earlier, fix more database leaks
Modified: branches/db4o/freenet/src/freenet/client/async/ClientGetter.java
===================================================================
--- branches/db4o/freenet/src/freenet/client/async/ClientGetter.java
2009-03-27 14:37:43 UTC (rev 26232)
+++ branches/db4o/freenet/src/freenet/client/async/ClientGetter.java
2009-03-27 14:38:32 UTC (rev 26233)
@@ -159,6 +159,9 @@
finished = true;
currentState = null;
}
+ if(persistent()) {
+ container.store(this);
+ }
// Rest of method does not need to be synchronized.
// Variables will be updated on exit of method, and the only
thing that is
// set is the returnBucket and the result. Not locking not only
prevents
@@ -194,7 +197,6 @@
}
FetchResult res = result;
if(persistent()) {
- container.store(this);
container.activate(clientCallback, 1);
}
clientCallback.onSuccess(res, ClientGetter.this, container);
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs