Fixed #1693 Same URLs didn't cancel download
Showing
1 changed file
with
1 additions
and
2 deletions
@@ -227,9 +227,8 @@ | @@ -227,9 +227,8 @@ | ||
227 | [self safelyRemoveOperationFromRunning:strongOperation]; | 227 | [self safelyRemoveOperationFromRunning:strongOperation]; |
228 | } | 228 | } |
229 | }]; | 229 | }]; |
230 | - __weak typeof(subOperationToken)weakSubOperationToken = subOperationToken; | ||
231 | operation.cancelBlock = ^{ | 230 | operation.cancelBlock = ^{ |
232 | - [self.imageDownloader cancel:weakSubOperationToken]; | 231 | + [self.imageDownloader cancel:subOperationToken]; |
233 | __strong __typeof(weakOperation) strongOperation = weakOperation; | 232 | __strong __typeof(weakOperation) strongOperation = weakOperation; |
234 | [self safelyRemoveOperationFromRunning:strongOperation]; | 233 | [self safelyRemoveOperationFromRunning:strongOperation]; |
235 | }; | 234 | }; |
-
Please register or login to post a comment