Skip to content

Commit

Permalink
Bug fix: don't remove key when request is cancelled
Browse files Browse the repository at this point in the history
  • Loading branch information
Hermes Pique authored and Hermes Pique committed Jun 11, 2014
1 parent f66a3a5 commit 588dc3a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Haneke/UIImageView+Haneke.m
Expand Up @@ -148,6 +148,8 @@ - (void)hnk_setImageFromURL:(NSURL*)url placeholderImage:(UIImage*)placeholderIm

if (error)
{
if (error.code == NSURLErrorCancelled) return;

HanekeLog(@"Request %@ failed with error %@", absoluteString, error);
dispatch_async(dispatch_get_main_queue(), ^
{
Expand Down

0 comments on commit 588dc3a

Please sign in to comment.