mirror of
https://gitee.com/shuto/cordova-plugin-network-information.git
synced 2025-01-19 05:52:49 +08:00
CB-6350 - Fix networkStatusForFlags return value type to work with 64-bit iOS
(closes #8) Signed-off-by: Shazron Abdullah <shazron@apache.org>
This commit is contained in:
parent
e437369c57
commit
e0d3ae00b7
@ -205,7 +205,7 @@ static void CDVReachabilityCallback(SCNetworkReachabilityRef target, SCNetworkRe
|
|||||||
return NotReachable;
|
return NotReachable;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL retVal = NotReachable;
|
NetworkStatus retVal = NotReachable;
|
||||||
|
|
||||||
if ((flags & kSCNetworkReachabilityFlagsConnectionRequired) == 0) {
|
if ((flags & kSCNetworkReachabilityFlagsConnectionRequired) == 0) {
|
||||||
// if target host is reachable and no connection is required
|
// if target host is reachable and no connection is required
|
||||||
|
Loading…
Reference in New Issue
Block a user