Updated reachability flags.
This commit is contained in:
parent
3e4725bb3e
commit
fe56222f5c
1 changed files with 3 additions and 3 deletions
|
|
@ -223,10 +223,10 @@ static void AFReachabilityCallback(SCNetworkReachabilityRef __unused target, SCN
|
|||
if (info) {
|
||||
AFNetworkReachabilityStatusBlock block = (AFNetworkReachabilityStatusBlock)info;
|
||||
|
||||
BOOL isReachable = ((flags & kSCNetworkFlagsReachable) != 0);
|
||||
BOOL needsConnection = ((flags & kSCNetworkFlagsConnectionRequired) != 0);
|
||||
|
||||
BOOL isReachable = ((flags & kSCNetworkReachabilityFlagsReachable) != 0);
|
||||
BOOL needsConnection = ((flags & kSCNetworkReachabilityFlagsConnectionRequired) != 0);
|
||||
BOOL isNetworkReachable = (isReachable && !needsConnection);
|
||||
|
||||
block(isNetworkReachable);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue