File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Couchbase.Lite.Shared/API/Sync
Couchbase.Lite.Support.Apple/iOS/Support Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -484,9 +484,14 @@ private void StartReachabilityObserver()
484
484
return ;
485
485
}
486
486
487
+ var remoteUrl = ( Config . Target as URLEndpoint ) ? . Url ;
488
+ if ( remoteUrl == null ) {
489
+ return ;
490
+ }
491
+
487
492
_reachability = Service . GetInstance < IReachability > ( ) ?? new Reachability ( ) ;
488
493
_reachability . StatusChanged += ReachabilityChanged ;
489
- _reachability . Url = Config . RemoteUrl ;
494
+ _reachability . Url = remoteUrl ;
490
495
_reachability . Start ( ) ;
491
496
}
492
497
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ public void Start()
104
104
{
105
105
_queue . DispatchSync ( ( ) =>
106
106
{
107
- if ( _started ) {
107
+ if ( _started || Url ? . IsLoopback == true ) {
108
108
return ;
109
109
}
110
110
You can’t perform that action at this time.
0 commit comments