Delay restarting of sub watcher to let Bisq recreate the directories.
This commit is contained in:
parent
6a2d6d6291
commit
e5c4642af4
@ -71,8 +71,11 @@ class Bisq {
|
|||||||
clearTimeout(fsWait);
|
clearTimeout(fsWait);
|
||||||
}
|
}
|
||||||
fsWait = setTimeout(() => {
|
fsWait = setTimeout(() => {
|
||||||
console.log(`Change detected in the top level Bisq data folder. Resetting inner watcher.`);
|
console.log(`Bisq restart detected. Resetting inner watcher in 3 minutes.`);
|
||||||
|
setTimeout(() => {
|
||||||
this.restartSubDirectoryWatcher();
|
this.restartSubDirectoryWatcher();
|
||||||
|
this.loadBisqDumpFile();
|
||||||
|
}, 180000);
|
||||||
}, 15000);
|
}, 15000);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user