Merge pull request #268 from matej/prefetcher-fix
Don't dispatch cancelAll calls.
This commit is contained in:
commit
a755f64752
|
@ -130,11 +130,8 @@
|
||||||
|
|
||||||
- (void)cancelAll
|
- (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
|
@end
|
||||||
|
|
Loading…
Reference in New Issue