[Issue #603] Removing duplicated runloop scheduling of outputStream
This commit is contained in:
parent
81f33ae971
commit
d31e23af29
1 changed files with 1 additions and 6 deletions
|
|
@ -184,10 +184,6 @@ 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;
|
||||
|
||||
|
|
@ -244,7 +240,6 @@ static inline BOOL AFStateTransitionIsValid(AFOperationState fromState, AFOperat
|
|||
}
|
||||
|
||||
[self willChangeValueForKey:@"outputStream"];
|
||||
|
||||
if (_outputStream) {
|
||||
[_outputStream close];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue