Author: toad
Date: 2008-01-23 17:45:15 +0000 (Wed, 23 Jan 2008)
New Revision: 17212

Modified:
   trunk/freenet/src/freenet/client/async/SingleFileFetcher.java
Log:
Use executor with a proper job name rather than ticker

Modified: trunk/freenet/src/freenet/client/async/SingleFileFetcher.java
===================================================================
--- trunk/freenet/src/freenet/client/async/SingleFileFetcher.java       
2008-01-23 17:43:11 UTC (rev 17211)
+++ trunk/freenet/src/freenet/client/async/SingleFileFetcher.java       
2008-01-23 17:45:15 UTC (rev 17212)
@@ -542,14 +542,14 @@
                final SingleFileFetcher f;
                f = new SingleFileFetcher(this, newMeta, new 
ArchiveFetcherCallback(forData, element, callback), new FetchContext(ctx, 
FetchContext.SET_RETURN_ARCHIVES, true));
                if(logMINOR) Logger.minor(this, "fetchArchive(): "+f);
-               ctx.ticker.queueTimedJob(new Runnable() {
+               ctx.executor.execute(new Runnable() {
                        public void run() {
                                // Fetch the archive. The archive fetcher 
callback will unpack it, and either call the element 
                                // callback, or just go back around 
handleMetadata() on this, which will see that the data is now
                                // available.
                                f.wrapHandleMetadata(true);
                        }
-               }, 0);
+               }, "Fetching archive for "+this);
        }

        /**


Reply via email to