From 108bf8a064268dbf04afd1045fb409f80c7d3be2 Mon Sep 17 00:00:00 2001 From: Janne Savolainen Date: Mon, 27 Jun 2022 13:34:06 +0300 Subject: [PATCH] Make reloading of application window not restart periodical check for updates Signed-off-by: Janne Savolainen --- .../start-checking-for-updates.injectable.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/application-update/periodical-check-for-updates/start-checking-for-updates.injectable.ts b/src/main/application-update/periodical-check-for-updates/start-checking-for-updates.injectable.ts index 9a9b9cf206..4c80e8178e 100644 --- a/src/main/application-update/periodical-check-for-updates/start-checking-for-updates.injectable.ts +++ b/src/main/application-update/periodical-check-for-updates/start-checking-for-updates.injectable.ts @@ -16,7 +16,7 @@ const startCheckingForUpdatesInjectable = getInjectable({ return { run: async () => { - if (updatingIsEnabled) { + if (updatingIsEnabled && !periodicalCheckForUpdates.started) { await periodicalCheckForUpdates.start(); } },