From 4cde3ddfa0d0bc8f209e3d33c73fc2339f440f3a Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Sun, 21 Jul 2024 17:27:35 +0200 Subject: [PATCH] fix: Reload extension when cancelling sync makes the action more immediate than waiting until all threads run into the cancel guard Signed-off-by: Marcel Klehr --- src/lib/browser/BrowserController.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/browser/BrowserController.js b/src/lib/browser/BrowserController.js index cdaa908a0f..da3d9cb626 100644 --- a/src/lib/browser/BrowserController.js +++ b/src/lib/browser/BrowserController.js @@ -324,7 +324,8 @@ export default class BrowserController { if (!keepEnabled) { await account.setData({ ...account.getData(), enabled: false }) } - await account.cancelSync() + await account.cancelSync() // does not block until cancelled, luckily + browser.runtime.reload() } async syncAccount(accountId, strategy) {