(crawler) Exit crawler retriever on thread interrupted
This commit is contained in:
parent
6bac3c75cb
commit
fd5a7eac87
@ -149,7 +149,8 @@ public class CrawlerRetreiver {
|
||||
|
||||
while (!crawlFrontier.isEmpty()
|
||||
&& !crawlFrontier.isCrawlDepthReached()
|
||||
&& errorCount < MAX_ERRORS)
|
||||
&& errorCount < MAX_ERRORS
|
||||
&& !Thread.interrupted())
|
||||
{
|
||||
var top = crawlFrontier.takeNextUrl();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user