#406 - Fixed a problem where hitting a failed URL more than once wouldn't call the completion block

This commit is contained in:
Dale Buckley 2013-06-04 12:04:36 +01:00
parent d04fd47f5b
commit 7d9c93fb51
1 changed files with 5 additions and 1 deletions

View File

@ -91,7 +91,11 @@
if (!url || !completedBlock || (!(options & SDWebImageRetryFailed) && isFailedUrl))
{
if (completedBlock) completedBlock(nil, nil, SDImageCacheTypeNone, NO);
if (completedBlock)
{
NSError *error = [NSError errorWithDomain:NSURLErrorDomain code:NSURLErrorFileDoesNotExist userInfo:nil];
completedBlock(nil, error, SDImageCacheTypeNone, YES);
}
return operation;
}