Skip to content

Commit f087437

Browse files
committed
Fix a bug causing a warning to pop up when a request was cancelled.
1 parent 5cd048c commit f087437

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy