From b3f6d8f1de06593b1266d0432f77f684dd79bb4f Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 17 Mar 2009 00:10:09 +0100 Subject: [PATCH] Use different executor for URL fetcher. --- src/net/pterodactylus/arachne/core/Core.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/pterodactylus/arachne/core/Core.java b/src/net/pterodactylus/arachne/core/Core.java index 9bcddb0..53dedb8 100644 --- a/src/net/pterodactylus/arachne/core/Core.java +++ b/src/net/pterodactylus/arachne/core/Core.java @@ -48,7 +48,7 @@ public class Core extends AbstractService { private ParserFactory parserFactory = new ParserFactory(); /** Thread pool for the URL fetches. */ - private Executor urlFetcherExecutor = Executors.newFixedThreadPool(1, new DumpingThreadFactory("URLFetcher-")); + private Executor urlFetcherExecutor = Executors.newSingleThreadExecutor(new DumpingThreadFactory("URLFetcher-")); /** The current list of URLs to crawl. */ private final List pages = new ArrayList(); -- 2.7.4