summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2014-10-30 03:04:19 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2014-10-30 03:04:19 -0700
commit2acc4fa4d400257a3be72965d602d31edd54ebd4 (patch)
tree1624e056f9c8d59b021052e44aa8441e83b98d3b
parent3c2ecf2b7d112da637aa741365c2685d93f282a5 (diff)
Do not attempt to suspend Cydia on iOS before 8.0.
-rw-r--r--MobileCydia.mm2
1 files changed, 2 insertions, 0 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index ac7f0b9..5d84d6d 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -9723,6 +9723,8 @@ _end
}
- (void) applicationDidEnterBackground:(UIApplication *)application {
+ if (kCFCoreFoundationVersionNumber < 1000 && [self isSafeToSuspend])
+ return [self terminateWithSuccess];
[self saveState];
}