Set _networkReachability to NULL after releasing. fixes AFNetworking/AFNetworking#529
This commit is contained in:
parent
f0e6b53fe7
commit
3589d25652
1 changed files with 1 additions and 0 deletions
|
|
@ -366,6 +366,7 @@ static void AFNetworkReachabilityReleaseCallback(const void *info) {}
|
|||
if (_networkReachability) {
|
||||
SCNetworkReachabilityUnscheduleFromRunLoop(_networkReachability, CFRunLoopGetMain(), (CFStringRef)NSRunLoopCommonModes);
|
||||
CFRelease(_networkReachability);
|
||||
_networkReachability = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue