Skip to content
Browse files

ios sdk: a walk around to avoid apple's -999 error

  • Loading branch information...
1 parent a98bcb4 commit 7b1be0618c98b6e98d8168ae3a9d9753c93727e3 Yujuan Bao committed Aug 11, 2010
Showing with 6 additions and 3 deletions.
  1. +6 −3 src/FBLoginDialog.m
View
9 src/FBLoginDialog.m
@@ -82,9 +82,12 @@ - (void)dialogDidCancel:(NSURL *)url {
}
- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error {
- [super webView:webView didFailLoadWithError:error];
- if ([_loginDelegate respondsToSelector:@selector(fbDialogNotLogin)]) {
- [_loginDelegate fbDialogNotLogin];
+ if (!(([error.domain isEqualToString:@"NSURLErrorDomain"] && error.code == -999) ||
+ ([error.domain isEqualToString:@"WebKitErrorDomain"] && error.code == 102))) {
+ [super webView:webView didFailLoadWithError:error];
+ if ([_loginDelegate respondsToSelector:@selector(fbDialogNotLogin)]) {
+ [_loginDelegate fbDialogNotLogin];
+ }
}
}

0 comments on commit 7b1be06

Please sign in to comment.
Something went wrong with that request. Please try again.