Merge pull request #683 from brynbodayle/master
Fixed issue where cancelled operations aren't removed from runningOperations.
This commit is contained in:
commit
2973aedd09
|
@ -197,6 +197,10 @@
|
|||
}];
|
||||
operation.cancelBlock = ^{
|
||||
[subOperation cancel];
|
||||
|
||||
@synchronized (self.runningOperations) {
|
||||
[self.runningOperations removeObject:weakOperation];
|
||||
}
|
||||
};
|
||||
}
|
||||
else if (image) {
|
||||
|
|
Loading…
Reference in New Issue