Permalink
Browse files

self in block

  • Loading branch information...
wjehenddher committed Jul 28, 2017
1 parent 6554afe commit 9b33c1699f3f94135fbc35cb06080cbfe9cf11d1
Showing with 1 addition and 1 deletion.
  1. +1 −1 UIKit+AFNetworking/AFImageDownloader.m
@@ -254,7 +254,7 @@ - (nullable AFImageDownloadReceipt *)downloadImageForURLRequest:(NSURLRequest *)
completionHandler:^(NSURLResponse * _Nonnull response, id _Nullable responseObject, NSError * _Nullable error) {
dispatch_async(self.responseQueue, ^{
__strong __typeof__(weakSelf) strongSelf = weakSelf;
AFImageDownloaderMergedTask *mergedTask = self.mergedTasks[URLIdentifier];
AFImageDownloaderMergedTask *mergedTask = strongSelf.mergedTasks[URLIdentifier];
if ([mergedTask.identifier isEqual:mergedTaskIdentifier]) {
mergedTask = [strongSelf safelyRemoveMergedTaskWithURLIdentifier:URLIdentifier];
if (error) {

0 comments on commit 9b33c16

Please sign in to comment.