summaryrefslogtreecommitdiff
path: root/CyteKit
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-05 04:56:16 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-07 02:41:37 -0800
commit46b423a7b319d0987c5134117f6b5235288b581f (patch)
tree7112a698cca898b8e95ed928303b486021924d33 /CyteKit
parent7732cc2d409e9ae8304b6633ba9f922ee41d5d0b (diff)
Verify that NSURLErrorCancelled is from NSURLErrorDomain.
Diffstat (limited to 'CyteKit')
-rw-r--r--CyteKit/WebViewController.mm2
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) {