From e5c4642af435ba75122aa3c7d5ac9f04f08bb9ef Mon Sep 17 00:00:00 2001 From: softsimon Date: Mon, 20 Jul 2020 16:36:08 +0700 Subject: [PATCH] Delay restarting of sub watcher to let Bisq recreate the directories. --- backend/src/api/bisq.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/backend/src/api/bisq.ts b/backend/src/api/bisq.ts index e5f9e11c4..ebaf7fd13 100644 --- a/backend/src/api/bisq.ts +++ b/backend/src/api/bisq.ts @@ -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); }); }