From d31e23af295565bee9ae348c6f13497378190fd9 Mon Sep 17 00:00:00 2001 From: Mattt Thompson Date: Wed, 31 Oct 2012 08:27:10 -0700 Subject: [PATCH] [Issue #603] Removing duplicated runloop scheduling of outputStream --- AFNetworking/AFURLConnectionOperation.m | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/AFNetworking/AFURLConnectionOperation.m b/AFNetworking/AFURLConnectionOperation.m index 2ddd7c5..339f145 100644 --- a/AFNetworking/AFURLConnectionOperation.m +++ b/AFNetworking/AFURLConnectionOperation.m @@ -184,11 +184,7 @@ static inline BOOL AFStateTransitionIsValid(AFOperationState fromState, AFOperat self.request = urlRequest; self.outputStream = [NSOutputStream outputStreamToMemory]; - NSRunLoop *runLoop = [NSRunLoop currentRunLoop]; - for (NSString *runLoopMode in self.runLoopModes) { - [self.outputStream scheduleInRunLoop:runLoop forMode:runLoopMode]; - } - + self.state = AFOperationReadyState; return self; @@ -244,7 +240,6 @@ static inline BOOL AFStateTransitionIsValid(AFOperationState fromState, AFOperat } [self willChangeValueForKey:@"outputStream"]; - if (_outputStream) { [_outputStream close]; }