mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-08-29 09:56:41 +00:00
fix: Avoid a NullPointerException when terminate is called again during shutdown
This commit is contained in:
@@ -423,7 +423,8 @@ implements Serializable,
|
||||
public synchronized void requestCrawlStop() {
|
||||
if(state == State.STOPPING) {
|
||||
// second stop request; nudge the threads with interrupts
|
||||
getToePool().cleanup();
|
||||
if (getToePool() != null)
|
||||
getToePool().cleanup();
|
||||
}
|
||||
requestCrawlStop(CrawlStatus.ABORTED);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user