Skip to content

Commit

Permalink
Fix checking reachability bug that prevents retry logic
Browse files Browse the repository at this point in the history
Fixed if condition check that prevents to retry after becoming online again. This is a regression bug.

#2372
  • Loading branch information
pasin committed Mar 22, 2019
1 parent fe62a5d commit 224ac65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Objective-C/CBLReplicator.mm
Expand Up @@ -348,7 +348,7 @@ - (void) stopReachabilityObserver {
- (void) reachabilityChanged {
CBL_LOCK(self) {
bool reachable = _reachability.reachable;
if (!reachable && !_repl && !_isStopping) {
if (reachable && !_repl && !_isStopping) {
CBLLogInfo(Sync, @"%@: Server may now be reachable; retrying...", self);
_retryCount = 0;
[self retry];
Expand Down

0 comments on commit 224ac65

Please sign in to comment.