Merge pull request #408 from dlbuckley/issue-406-Failed-URL-Problem

#406 - Fixed failed URL problem
This commit is contained in:
Olivier Poitrey 2013-06-04 05:12:07 -07:00
commit d38e13c58d
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;
}