]> git.saurik.com Git - cydia.git/commitdiff
Do not attempt to suspend Cydia on iOS before 8.0.
authorJay Freeman (saurik) <saurik@saurik.com>
Thu, 30 Oct 2014 10:04:19 +0000 (03:04 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 30 Oct 2014 10:04:19 +0000 (03:04 -0700)
MobileCydia.mm

index ac7f0b9a50a02479ac01d438d4f60c84a84ab046..5d84d6dff9163a3b04c14452dedd3b95c0d29e33 100644 (file)
@@ -9723,6 +9723,8 @@ _end
 }
 
 - (void) applicationDidEnterBackground:(UIApplication *)application {
 }
 
 - (void) applicationDidEnterBackground:(UIApplication *)application {
+    if (kCFCoreFoundationVersionNumber < 1000 && [self isSafeToSuspend])
+        return [self terminateWithSuccess];
     [self saveState];
 }
 
     [self saveState];
 }