Delay restarting of sub watcher to let Bisq recreate the directories.

This commit is contained in:
softsimon 2020-07-20 16:36:08 +07:00
parent dfea6441ed
commit 35c3f84109

View File

@ -71,8 +71,11 @@ class Bisq {
clearTimeout(fsWait);
}
fsWait = setTimeout(() => {
console.log(`Change detected in the top level Bisq data folder. Resetting inner watcher.`);
this.restartSubDirectoryWatcher();
console.log(`Bisq restart detected. Resetting inner watcher in 3 minutes.`);
setTimeout(() => {
this.restartSubDirectoryWatcher();
this.loadBisqDumpFile();
}, 180000);
}, 15000);
});
}