mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-11-04 21:12:37 +00:00
Fix race condition which can happen with multiple concurrent "launch"es - can end up with duplicate ToePools like before r7268, probably other problems
* CrawlJob.java
launch() - synchronize this method - sort of a blunt fix but probably safest and shouldn't affect performance
This commit is contained in:
1 parent
19e94f07d1
commit
10b3686ba8
1 file changed
+1
-1
@@ -397,7 +397,7 @@ public class CrawlJob implements Comparable<CrawlJob>, ApplicationListener<Appli
|
||||
* (Note the crawl may have been configured to start in a 'paused'
|
||||
* state.)
|
||||
*/
|
||||
public void launch() {
|
||||
public synchronized void launch() {
|
||||
if (isProfile()) {
|
||||
throw new IllegalArgumentException("Can't launch profile" + this);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user