Skip to content

Commit

Permalink
Merge pull request AFNetworking#2070 from sipdar/master
Browse files Browse the repository at this point in the history
image Download failure call back block check uiImageView operation request url equal
  • Loading branch information
mattt committed May 17, 2014
2 parents 04543da + 942a9b5 commit 2ee9d05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UIKit+AFNetworking/UIImageView+AFNetworking.m
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ - (void)setImageWithURLRequest:(NSURLRequest *)urlRequest
[[[strongSelf class] sharedImageCache] cacheImage:responseObject forRequest:urlRequest];
} failure:^(AFHTTPRequestOperation *operation, NSError *error) {
__strong __typeof(weakSelf)strongSelf = weakSelf;
if ([[urlRequest URL] isEqual:[operation.request URL]]) {
if ([[urlRequest URL] isEqual:[strongSelf.af_imageRequestOperation.request URL]]) {
if (failure) {
failure(urlRequest, operation.response, error);
}
Expand Down

0 comments on commit 2ee9d05

Please sign in to comment.