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]; }