On Wed, Apr 15, 2009 at 9:28 PM, <toad at freenetproject.org> wrote: > Author: toad > Date: 2009-04-15 13:28:16 +0000 (Wed, 15 Apr 2009) > New Revision: 26844 > > Modified: > ? trunk/freenet/src/freenet/client/async/USKFetcher.java > Log: > USKFetcher: subscribe to USKManager so that we are immediately told if the > edition we are fetching is updated. Unsub on cancel or finish. > > > Modified: trunk/freenet/src/freenet/client/async/USKFetcher.java > =================================================================== > --- trunk/freenet/src/freenet/client/async/USKFetcher.java ? ? ?2009-04-15 > 12:57:07 UTC (rev 26843) > +++ trunk/freenet/src/freenet/client/async/USKFetcher.java ? ? ?2009-04-15 > 13:28:16 UTC (rev 26844) > @@ -64,7 +64,7 @@ > ?* - TUKs (when we have TUKs). > ?* - Passive requests (when we have passive requests). > ?*/ > -public class USKFetcher implements ClientGetState { > +public class USKFetcher implements ClientGetState, USKCallback { > ? ? private static volatile boolean logMINOR; > ? ? private static volatile boolean logDEBUG; > > @@ -300,6 +300,7 @@ > ? ? ? ? ? ? ? ? ? ? ? ?} > ? ? ? ? ? ? ? ? ? ? ? ?schedule(end-now, null, context); > ? ? ? ? ? ? ? ?} else { > + ? ? ? ? ? ? ? ? ? ? ? uskManager.unsubscribe(origUSK, this, false);
uskManager.unsubscribe() didn't work last time I checked (before db4o merge), is that fixed since then? [..]