Fixed issue where cancelled operations aren't removed from runningOperations

This commit is contained in:
Bryn Bodayle 2014-04-01 10:21:11 -05:00
parent b49243d147
commit ec5369db13
1 changed files with 4 additions and 0 deletions

View File

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