]> git.saurik.com Git - cydia.git/commitdiff
Verify that NSURLErrorCancelled is from NSURLErrorDomain.
authorJay Freeman (saurik) <saurik@saurik.com>
Sat, 5 Mar 2011 12:56:16 +0000 (04:56 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 7 Mar 2011 10:41:37 +0000 (02:41 -0800)
CyteKit/WebViewController.mm

index d98bf231c2a92a2129394a003d3937cfa6168bf6..d3b12a6032366ec18943540bc0a7535c84ec445a 100644 (file)
@@ -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) {