Merge pull request #408 from dlbuckley/issue-406-Failed-URL-Problem
#406 - Fixed failed URL problem
This commit is contained in:
commit
d38e13c58d
|
@ -91,7 +91,11 @@
|
||||||
|
|
||||||
if (!url || !completedBlock || (!(options & SDWebImageRetryFailed) && isFailedUrl))
|
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;
|
return operation;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue