Merge pull request #268 from matej/prefetcher-fix

Don't dispatch cancelAll calls.
This commit is contained in:
Olivier Poitrey 2013-01-11 05:34:49 -08:00
commit a755f64752
1 changed files with 2 additions and 5 deletions

View File

@ -130,11 +130,8 @@
- (void)cancelAll
{
dispatch_async(dispatch_get_main_queue(), ^
{
[self.runningOperations makeObjectsPerformSelector:@selector(cancel)];
[self.runningOperations removeAllObjects];
});
[self.runningOperations makeObjectsPerformSelector:@selector(cancel)];
[self.runningOperations removeAllObjects];
}
@end