From 1c1408eb127bd364baede3ea12a116cd25bbb8ec Mon Sep 17 00:00:00 2001 From: Janne Savolainen Date: Thu, 23 Jun 2022 10:23:41 +0300 Subject: [PATCH] Make reloading application not restart the catalog sync Signed-off-by: Janne Savolainen --- .../catalog-sync-to-renderer/start-catalog-sync.injectable.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/catalog-sync-to-renderer/start-catalog-sync.injectable.ts b/src/main/catalog-sync-to-renderer/start-catalog-sync.injectable.ts index 71afc4d895..3dfd9ee2ae 100644 --- a/src/main/catalog-sync-to-renderer/start-catalog-sync.injectable.ts +++ b/src/main/catalog-sync-to-renderer/start-catalog-sync.injectable.ts @@ -14,7 +14,9 @@ const startCatalogSyncInjectable = getInjectable({ return { run: async () => { - await catalogSyncToRenderer.start(); + if (!catalogSyncToRenderer.started) { + await catalogSyncToRenderer.start(); + } }, }; },