File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -379,12 +379,12 @@ - (void)startMonitoringNetworkReachability {
379
379
});
380
380
}
381
381
382
- SCNetworkReachabilityScheduleWithRunLoop (self.networkReachability , CFRunLoopGetMain (), (CFStringRef) NSRunLoopCommonModes );
382
+ SCNetworkReachabilityScheduleWithRunLoop (self.networkReachability , CFRunLoopGetMain (), kCFRunLoopCommonModes );
383
383
}
384
384
385
385
- (void )stopMonitoringNetworkReachability {
386
386
if (self.networkReachability ) {
387
- SCNetworkReachabilityUnscheduleFromRunLoop (self.networkReachability , CFRunLoopGetMain (), (CFStringRef) NSRunLoopCommonModes );
387
+ SCNetworkReachabilityUnscheduleFromRunLoop (self.networkReachability , CFRunLoopGetMain (), kCFRunLoopCommonModes );
388
388
389
389
CFRelease (_networkReachability);
390
390
_networkReachability = NULL ;
You can’t perform that action at this time.
0 commit comments