mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-09-26 23:55:50 +00:00
avoid deadlock in case of BeansException at crawl startup
This commit is contained in:
@@ -680,9 +680,11 @@ public class CrawlJob implements Comparable<CrawlJob>, ApplicationListener<Appli
|
||||
(ac.getCurrentLaunchId() != null ? " " + ac.getCurrentLaunchId() : ""));
|
||||
}
|
||||
|
||||
synchronized (this) {
|
||||
if (needTeardown && event instanceof StopCompleteEvent) {
|
||||
doTeardown();
|
||||
if (event instanceof StopCompleteEvent) {
|
||||
synchronized (this) {
|
||||
if (needTeardown) {
|
||||
doTeardown();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user