[Issue #603] Removing duplicated runloop scheduling of outputStream

This commit is contained in:
Mattt Thompson 2012-10-31 08:27:10 -07:00
parent 81f33ae971
commit d31e23af29

View file

@ -184,10 +184,6 @@ static inline BOOL AFStateTransitionIsValid(AFOperationState fromState, AFOperat
self.request = urlRequest; self.request = urlRequest;
self.outputStream = [NSOutputStream outputStreamToMemory]; self.outputStream = [NSOutputStream outputStreamToMemory];
NSRunLoop *runLoop = [NSRunLoop currentRunLoop];
for (NSString *runLoopMode in self.runLoopModes) {
[self.outputStream scheduleInRunLoop:runLoop forMode:runLoopMode];
}
self.state = AFOperationReadyState; self.state = AFOperationReadyState;
@ -244,7 +240,6 @@ static inline BOOL AFStateTransitionIsValid(AFOperationState fromState, AFOperat
} }
[self willChangeValueForKey:@"outputStream"]; [self willChangeValueForKey:@"outputStream"];
if (_outputStream) { if (_outputStream) {
[_outputStream close]; [_outputStream close];
} }