-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core/sync: Restart remote watcher when back online (#2027)
When the remote watcher fails to fetch remote changes because the Cozy is unreachable (i.e. we received a FetchError with a status for which we don't have a special treatment or that treatment is notifying that the Cozy is unreachable) we block the synchronization and stop the remote watcher to prevent further errors. While we were regularly pinging the remote Cozy to see if it was reachable again and notifying the GUI with an `online` event in this case, we were not restarting the remote watcher. Therefore, we were not fetching remote changes anymore after the Cozy was made unreachable once. We now make sure the remote watcher is restarted whenever we unblock the synchronization.
- Loading branch information
1 parent
5589938
commit 30eb233
Showing
3 changed files
with
118 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters