Permalink
Browse files

Removing unnecessary performSelectorOnMainThread for -finish calls

  • Loading branch information...
mattt committed Aug 24, 2011
1 parent 8de22e8 commit 79e4d0e823ede1acd8cdadeb3ed727fabfb1e59d
Showing with 2 additions and 2 deletions.
  1. +2 −2 AFNetworking/AFHTTPRequestOperation.m
@@ -329,7 +329,7 @@ - (void)connectionDidFinishLoading:(NSURLConnection *)connection {
[_dataAccumulator release]; _dataAccumulator = nil;
}
- [self performSelectorOnMainThread:@selector(finish) withObject:nil waitUntilDone:NO];
+ [self finish];
}
- (void)connection:(NSURLConnection *)connection
@@ -339,7 +339,7 @@ - (void)connection:(NSURLConnection *)connection
self.error = error;
- [self performSelectorOnMainThread:@selector(finish) withObject:nil waitUntilDone:NO];
+ [self finish];
}
- (void)connection:(NSURLConnection *)connection

0 comments on commit 79e4d0e

Please sign in to comment.