mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-09-22 13:46:01 +00:00
Merge pull request #168 from internetarchive/gh-167
fix for race-condition when first using the WARC writers https://gith…
This commit is contained in:
@@ -454,7 +454,9 @@ implements Lifecycle, Checkpointable, WriterPoolSettings {
|
||||
File f = path.getFile();
|
||||
if (!f.exists()) {
|
||||
try {
|
||||
FileUtils.ensureWriteableDirectory(f);
|
||||
synchronized (this) {
|
||||
FileUtils.ensureWriteableDirectory(f);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user