(crawler) Exit crawler retriever on thread interrupted

This commit is contained in:
Viktor Lofgren 2023-10-30 11:34:16 +01:00
parent 6bac3c75cb
commit fd5a7eac87

View File

@ -149,7 +149,8 @@ public class CrawlerRetreiver {
while (!crawlFrontier.isEmpty()
&& !crawlFrontier.isCrawlDepthReached()
&& errorCount < MAX_ERRORS)
&& errorCount < MAX_ERRORS
&& !Thread.interrupted())
{
var top = crawlFrontier.takeNextUrl();