Merge pull request #683 from brynbodayle/master

Fixed issue where cancelled operations aren't removed from runningOperations.
This commit is contained in:
Bogdan Poplauschi 2014-06-17 17:04:34 +03:00
commit 2973aedd09
1 changed files with 4 additions and 0 deletions

View File

@ -197,6 +197,10 @@
}];
operation.cancelBlock = ^{
[subOperation cancel];
@synchronized (self.runningOperations) {
[self.runningOperations removeObject:weakOperation];
}
};
}
else if (image) {