Skip to content

Commit a7eaac4

Browse files
authored
Use callback flags in reachability instead of the initial flags (#4949)
* Use callback flags in reachability instead of the initial flags * styled
1 parent 8fdeec9 commit a7eaac4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

GoogleDataTransport/GDTCORLibrary/GDTCORReachability.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ + (SCNetworkReachabilityFlags)currentFlags {
6060
__block SCNetworkReachabilityFlags currentFlags;
6161
dispatch_sync([GDTCORReachability sharedInstance] -> _reachabilityQueue, ^{
6262
GDTCORReachability *reachability = [GDTCORReachability sharedInstance];
63-
currentFlags = reachability->_flags ? reachability->_flags : reachability->_callbackFlags;
63+
currentFlags =
64+
reachability->_callbackFlags ? reachability->_callbackFlags : reachability->_flags;
6465
GDTCORLogDebug("Initial reachability flags determined: %d", currentFlags);
6566
});
6667
return currentFlags;

0 commit comments

Comments
 (0)