Skip to content

Commit 14e0559

Browse files
committed
Merge branch 'master' into v2ex
2 parents d578ddc + f087437 commit 14e0559

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

WebAppWrapper/RootViewController.m

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ - (void)refresh
7676
- (void)failRefresh
7777
{
7878
if (self.currentFailRefreshCount) {
79-
[self refresh];
8079
self.currentFailRefreshCount--;
80+
[self refresh];
8181
} else {
8282
[self showFailLoadWarning];
8383
}
@@ -264,7 +264,9 @@ - (void)webViewDidFinishLoad:(UIWebView *)webView
264264
- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error
265265
{
266266
if (webView == self.webView) {
267-
[self failRefresh];
267+
if (error.code != NSURLErrorCancelled) {
268+
[self failRefresh];
269+
}
268270
}
269271
}
270272

0 commit comments

Comments
 (0)