-
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/remote/watcher: Do not watch if stopped
The remote watcher can be stopped while it was waiting for the PouchDB lock to be free. In this case, we've already passed all checks on the running status of the watcher and the `watch()` call will be executed once the lock is free which we don't want (this can trigger unwanted requests to the remote Cozy when the watcher is stopped by Sync because of an unreachable Cozy for example). Adding another check right after the lock gate prevents this.
- Loading branch information
1 parent
7024c93
commit 6a567f3
Showing
3 changed files
with
37 additions
and
0 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