removed schedule/unschedule of reachability observer based on application active/inactive notifications

This commit is contained in:
Jeff Arena
2011-03-17 17:53:18 -07:00
parent d6f0a1f3cc
commit 30b7c0d5d9

View File

@@ -81,15 +81,6 @@ static void ReachabilityCallback(SCNetworkReachabilityRef target, SCNetworkReach
if (self = [self init]) {
_reachabilityRef = reachabilityRef;
[self scheduleObserver];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(scheduleObserver)
name:UIApplicationDidBecomeActiveNotification
object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(unscheduleObserver)
name:UIApplicationWillResignActiveNotification
object:nil];
}
return self;
}