mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 21:18:58 +00:00
(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