Skip to content

Commit

Permalink
fix: Reload extension when cancelling sync
Browse files Browse the repository at this point in the history
makes the action more immediate than waiting until all threads run into the cancel guard

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
  • Loading branch information
marcelklehr committed Jul 21, 2024
1 parent 9a14a8b commit 4cde3dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/browser/BrowserController.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4cde3dd

Please sign in to comment.