Skip to content
This repository was archived by the owner on May 20, 2021. It is now read-only.

Commit 49234e9

Browse files
committed
Assume network is reachable until proven otherwise
1 parent 54d43d8 commit 49234e9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Meteor/METDDPClient.m

+2-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ - (void)setConnectionStatus:(METDDPConnectionStatus)connectionStatus {
181181

182182
- (BOOL)isNetworkReachable {
183183
@synchronized(self) {
184-
return _networkReachabilityManager.reachabilityStatus == METNetworkReachabilityStatusReachable;
184+
// Assume reachable until proven otherwise
185+
return _networkReachabilityManager.reachabilityStatus != METNetworkReachabilityStatusNotReachable;
185186
}
186187
}
187188

0 commit comments

Comments
 (0)