Merge pull request #1767 from sunXiChun/master

add a network error situation
This commit is contained in:
Bogdan Poplauschi 2017-01-30 08:12:00 +02:00 committed by GitHub
commit 1f52288a8b
1 changed files with 2 additions and 1 deletions

View File

@ -186,7 +186,8 @@
&& error.code != NSURLErrorInternationalRoamingOff
&& error.code != NSURLErrorDataNotAllowed
&& error.code != NSURLErrorCannotFindHost
&& error.code != NSURLErrorCannotConnectToHost) {
&& error.code != NSURLErrorCannotConnectToHost
&& error.code != NSURLErrorNetworkConnectionLost) {
@synchronized (self.failedURLs) {
[self.failedURLs addObject:url];
}