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 = ^{
|
operation.cancelBlock = ^{
|
||||||
[subOperation cancel];
|
[subOperation cancel];
|
||||||
|
|
||||||
|
@synchronized (self.runningOperations) {
|
||||||
|
[self.runningOperations removeObject:weakOperation];
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
else if (image) {
|
else if (image) {
|
||||||
|
|
Loading…
Reference in New Issue