Removing unnecessary performSelectorOnMainThread for -finish calls
This commit is contained in:
parent
8de22e8f99
commit
79e4d0e823
1 changed files with 2 additions and 2 deletions
|
|
@ -329,7 +329,7 @@ didReceiveResponse:(NSURLResponse *)response
|
||||||
[_dataAccumulator release]; _dataAccumulator = nil;
|
[_dataAccumulator release]; _dataAccumulator = nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
[self performSelectorOnMainThread:@selector(finish) withObject:nil waitUntilDone:NO];
|
[self finish];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)connection:(NSURLConnection *)connection
|
- (void)connection:(NSURLConnection *)connection
|
||||||
|
|
@ -339,7 +339,7 @@ didReceiveResponse:(NSURLResponse *)response
|
||||||
|
|
||||||
self.error = error;
|
self.error = error;
|
||||||
|
|
||||||
[self performSelectorOnMainThread:@selector(finish) withObject:nil waitUntilDone:NO];
|
[self finish];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)connection:(NSURLConnection *)connection
|
- (void)connection:(NSURLConnection *)connection
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue