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 6a2d6d6291
commit e5c4642af4
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7

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);
});
}