Skip to content

Commit

Permalink
fix(Controller#scheduleSync): Allow syncing if account is disabled an…
Browse files Browse the repository at this point in the history
…d scheduled

Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
marcelklehr committed Dec 23, 2023
1 parent 9358000 commit 2bedca7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/lib/browser/BrowserController.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,8 @@ export default class BrowserController {
console.log('Account is already syncing. Not syncing again.')
return
}
if (!account.getData().enabled) {
// if the account is already scheduled, don't prevent it, to avoid getting stuck
if (!account.getData().enabled && !account.getData().scheduled) {
console.log('Account is not enabled. Not syncing.')
return
}
Expand Down
3 changes: 2 additions & 1 deletion src/lib/native/NativeController.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ export default class NativeController {
if (account.getData().syncing) {
return
}
if (!account.getData().enabled) {
if (!account.getData().enabled && !account.getData().scheduled) {
console.log('Account is not enabled. Not syncing.')
return
}

Expand Down

0 comments on commit 2bedca7

Please sign in to comment.