From: Jay Freeman (saurik) Date: Sat, 5 Mar 2011 12:56:16 +0000 (-0800) Subject: Verify that NSURLErrorCancelled is from NSURLErrorDomain. X-Git-Tag: v1.1.0%b1~64 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/46b423a7b319d0987c5134117f6b5235288b581f Verify that NSURLErrorCancelled is from NSURLErrorDomain. --- 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) {