diff options
author | Muxi Yan <muxi@users.noreply.github.com> | 2017-02-06 10:27:05 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-06 10:27:05 -0800 |
commit | c4fc1da9890e4db2bbb976d424fb1cd97642d6b3 (patch) | |
tree | 21b218b29c552ca4598e03917a350d67bf349df4 /src/objective-c | |
parent | 7ed3c932c968a77114691550e750b91d7231a385 (diff) | |
parent | f0a12696738556735a3d3a46459c85d574ba4ba2 (diff) |
Merge pull request #9534 from muxi/port-9505
Port #9505: Fixes for gRPC ObjC v1.1.0 release
Diffstat (limited to 'src/objective-c')
-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; } |