Fixed #1693 Same URLs didn't cancel download
This commit is contained in:
parent
bb640f1ca4
commit
032ab1dd6d
|
@ -227,9 +227,8 @@
|
|||
[self safelyRemoveOperationFromRunning:strongOperation];
|
||||
}
|
||||
}];
|
||||
__weak typeof(subOperationToken)weakSubOperationToken = subOperationToken;
|
||||
operation.cancelBlock = ^{
|
||||
[self.imageDownloader cancel:weakSubOperationToken];
|
||||
[self.imageDownloader cancel:subOperationToken];
|
||||
__strong __typeof(weakOperation) strongOperation = weakOperation;
|
||||
[self safelyRemoveOperationFromRunning:strongOperation];
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue