Don't dispatch cancelAll calls.

- should fix pre-fetcher problems #247
- cancelAll should be always called using the main thread
This commit is contained in:
Matej Bukovinski 2012-12-19 16:24:00 +01:00
parent b398208beb
commit e31b157394
1 changed files with 2 additions and 5 deletions

View File

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