Fix STKAutoRecoveringHTTPDataSource not passing on unregisterForEvents. Fix STKCoreFoundationDataSource not unregisteringForEvents on dealloc

This commit is contained in:
Thong Nguyen 2014-01-29 09:27:51 +00:00
parent 8dd611c2ac
commit b2eeb76c90
2 changed files with 6 additions and 1 deletions

View File

@ -122,6 +122,8 @@ static void ReachabilityCallback(SCNetworkReachabilityRef target, SCNetworkReach
-(void) unregisterForEvents
{
[super unregisterForEvents];
[self stopNotifier];
}

View File

@ -86,7 +86,10 @@ static void ReadStreamCallbackProc(CFReadStreamRef stream, CFStreamEventType eve
{
if (stream)
{
[self unregisterForEvents];
if (eventsRunLoop)
{
[self unregisterForEvents];
}
[self close];