mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-11-09 23:43:29 +00:00
Prevent timing NPEs on CrawlLimitEnforcer-triggered crawl end
* AbstractFrontier.java
close recovery log in stop() (comes later, usu. from managerThread) rather than terminate() (earlier, may occur in other threads like progress-stats-snapshot thread)
This commit is contained in:
1 parent
21d4bce819
commit
7d0061884c
1 file changed
+1
-2
@@ -170,6 +170,7 @@ public abstract class AbstractFrontier
|
||||
|
||||
public void stop() {
|
||||
terminate();
|
||||
ArchiveUtils.closeQuietly(this.recover);
|
||||
}
|
||||
|
||||
|
||||
@@ -643,8 +644,6 @@ public abstract class AbstractFrontier
|
||||
|
||||
synchronized public void terminate() {
|
||||
requestState(State.FINISH);
|
||||
// TODO: move this recover-cleanup to manager thread?
|
||||
ArchiveUtils.closeQuietly(this.recover);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user