diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-05 04:56:16 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-07 02:41:37 -0800 |
commit | 46b423a7b319d0987c5134117f6b5235288b581f (patch) | |
tree | 7112a698cca898b8e95ed928303b486021924d33 | |
parent | 7732cc2d409e9ae8304b6633ba9f922ee41d5d0b (diff) |
Verify that NSURLErrorCancelled is from NSURLErrorDomain.
-rw-r--r-- | CyteKit/WebViewController.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm index d98bf23..d3b12a6 100644 --- a/CyteKit/WebViewController.mm +++ b/CyteKit/WebViewController.mm @@ -341,7 +341,7 @@ float CYScrollViewDecelerationRateNormal; [loading_ removeObject:[NSValue valueWithNonretainedObject:frame]]; [self _didFinishLoading]; - if ([error code] == NSURLErrorCancelled) + if ([[error domain] isEqualToString:NSURLErrorDomain] && [error code] == NSURLErrorCancelled) return; if ([frame parentFrame] == nil) { |