Fixed issue where cancelled operations aren't removed from runningOperations
This commit is contained in:
parent
b49243d147
commit
ec5369db13
|
|
@ -191,6 +191,10 @@
|
|||
}];
|
||||
operation.cancelBlock = ^{
|
||||
[subOperation cancel];
|
||||
|
||||
@synchronized (self.runningOperations) {
|
||||
[self.runningOperations removeObject:weakOperation];
|
||||
}
|
||||
};
|
||||
}
|
||||
else if (image) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue