Skip to content
Browse files

Set `_networkReachability` to `NULL` after releasing. fixes AFNetwork…

  • Loading branch information...
1 parent f0e6b53 commit 3589d25652034b71ca408eadb60de4ff903a44e4 @blakewatters committed Sep 19, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 AFNetworking/AFHTTPClient.m
View
1 AFNetworking/AFHTTPClient.m
@@ -366,6 +366,7 @@ - (void)stopMonitoringNetworkReachability {
if (_networkReachability) {
SCNetworkReachabilityUnscheduleFromRunLoop(_networkReachability, CFRunLoopGetMain(), (CFStringRef)NSRunLoopCommonModes);
CFRelease(_networkReachability);
+ _networkReachability = NULL;
}
}

0 comments on commit 3589d25

Please sign in to comment.
Something went wrong with that request. Please try again.