Revert "Filter the error domain with NSURLErrorDomain before checking the URL Error Codes"
This reverts commit 40abbd648d
.
This commit is contained in:
parent
456b6eadc6
commit
70d760af54
|
@ -209,8 +209,6 @@
|
|||
if ([self.delegate respondsToSelector:@selector(imageManager:shouldBlockFailedURL:withError:)]) {
|
||||
shouldBlockFailedURL = [self.delegate imageManager:self shouldBlockFailedURL:url withError:error];
|
||||
} else {
|
||||
// Filter the error domain and check error codes
|
||||
if ([error.domain isEqualToString:NSURLErrorDomain]) {
|
||||
shouldBlockFailedURL = ( error.code != NSURLErrorNotConnectedToInternet
|
||||
&& error.code != NSURLErrorCancelled
|
||||
&& error.code != NSURLErrorTimedOut
|
||||
|
@ -219,9 +217,6 @@
|
|||
&& error.code != NSURLErrorCannotFindHost
|
||||
&& error.code != NSURLErrorCannotConnectToHost
|
||||
&& error.code != NSURLErrorNetworkConnectionLost);
|
||||
} else {
|
||||
shouldBlockFailedURL = NO;
|
||||
}
|
||||
}
|
||||
|
||||
if (shouldBlockFailedURL) {
|
||||
|
|
Loading…
Reference in New Issue