X-Git-Url: https://git.pterodactylus.net/?p=arachne.git;a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Farachne%2Fcore%2FCore.java;fp=src%2Fnet%2Fpterodactylus%2Farachne%2Fcore%2FCore.java;h=53dedb80c0e87e3d2c24454227e5b279a1ea571e;hp=9bcddb0aaf661119c59a8597d91a60bec8b5c61c;hb=b3f6d8f1de06593b1266d0432f77f684dd79bb4f;hpb=83a84def68ebc8d094bc9837ec72b5fc5cfdd782 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();