Replacing (CFStringRef)NSRunLoopCommonModes with kCFRunLoopCommonModes
This commit is contained in:
parent
8916a10dc4
commit
8fd6eefb2a
1 changed files with 2 additions and 2 deletions
|
|
@ -379,12 +379,12 @@ static void AFNetworkReachabilityReleaseCallback(const void *info) {
|
|||
});
|
||||
}
|
||||
|
||||
SCNetworkReachabilityScheduleWithRunLoop(self.networkReachability, CFRunLoopGetMain(), (CFStringRef)NSRunLoopCommonModes);
|
||||
SCNetworkReachabilityScheduleWithRunLoop(self.networkReachability, CFRunLoopGetMain(), kCFRunLoopCommonModes);
|
||||
}
|
||||
|
||||
- (void)stopMonitoringNetworkReachability {
|
||||
if (self.networkReachability) {
|
||||
SCNetworkReachabilityUnscheduleFromRunLoop(self.networkReachability, CFRunLoopGetMain(), (CFStringRef)NSRunLoopCommonModes);
|
||||
SCNetworkReachabilityUnscheduleFromRunLoop(self.networkReachability, CFRunLoopGetMain(), kCFRunLoopCommonModes);
|
||||
|
||||
CFRelease(_networkReachability);
|
||||
_networkReachability = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue