Use different executor for URL fetcher.
[arachne.git] / src / net / pterodactylus / arachne / core / Core.java
index 9bcddb0..53dedb8 100644 (file)
@@ -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<Page> pages = new ArrayList<Page>();