From 46b423a7b319d0987c5134117f6b5235288b581f Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sat, 5 Mar 2011 04:56:16 -0800 Subject: [PATCH] Verify that NSURLErrorCancelled is from NSURLErrorDomain. --- CyteKit/WebViewController.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm index d98bf231..d3b12a60 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) { -- 2.47.2