sync-engine
sync-engine copied to clipboard
Unable to stop syncing an account in connerror state
If an account is in connerror state, there doesn't seem to be a way to prevent inbox sync from reconnecting to the account. account.stop_sync() doesn't do anything, and even calling account.kill_sync() or setting sync_state to stopped manually resets the state to connerror after a while. It seems like there should be an additional field that indicates the desired account state.
Looks part of this was addressed in https://github.com/inboxapp/inbox/commit/6b029b42 by introducing a new flag. However, if the account is in connerror state and I set sync_should_run to 0 it still is being retried.
@thomasst is this still happening?