diff options
author | Muxi Yan <mxyan@google.com> | 2017-01-31 16:30:52 -0800 |
---|---|---|
committer | Muxi Yan <mxyan@google.com> | 2017-01-31 16:34:31 -0800 |
commit | e2de92fa6c7a85dbbba11b5c85856e89ee3f7fb0 (patch) | |
tree | 175edc372ed72dc368936c6d17e92abd9e622573 /src | |
parent | 7b005f7fddb0ce158c55bb804fe5811a096f1ae0 (diff) |
port #9505 to master
Diffstat (limited to 'src')
-rw-r--r-- | src/objective-c/GRPCClient/private/GRPCConnectivityMonitor.m | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCConnectivityMonitor.m b/src/objective-c/GRPCClient/private/GRPCConnectivityMonitor.m index 40afca2d3d..0e2fa13f2c 100644 --- a/src/objective-c/GRPCClient/private/GRPCConnectivityMonitor.m +++ b/src/objective-c/GRPCClient/private/GRPCConnectivityMonitor.m @@ -159,11 +159,13 @@ static void PassFlagsToContextInfoBlock(SCNetworkReachabilityRef target, if (strongSelf) { if (lossHandler && !flags.reachable) { lossHandler(); +#if TARGET_OS_IPHONE } else if (wifiStatusChangeHandler && strongSelf->_previousReachabilityFlags && (flags.isWWAN ^ strongSelf->_previousReachabilityFlags.isWWAN)) { wifiStatusChangeHandler(); +#endif } strongSelf->_previousReachabilityFlags = flags; } |