Skip to content

Commit 07c44b8

Browse files
committed
Update ViewController.m
1 parent 2fa69c7 commit 07c44b8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ios8-jailbreak/ViewController.m

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,15 +224,19 @@ - (void)jailbreak {
224224
});
225225
postjailbreak_remount();
226226

227-
if (!postjailbreak_check_status() || reinstall_strap) {
227+
if (!postjailbreak_check_status()) {
228+
reinstall_strap = true;
229+
}
230+
231+
if (reinstall_strap) {
228232
dispatch_async(dispatch_get_main_queue(), ^{
229233
[_jailbreak_button setTitle:@"Installing bootstrap" forState:UIControlStateDisabled];
230234
});
231235
postjailbreak_bootstrap();
232236

233237
}
234238

235-
if (!postjailbreak_check_sbshowapp() || !postjailbreak_check_status() || reinstall_strap) {
239+
if (!postjailbreak_check_sbshowapp() || reinstall_strap) {
236240
dispatch_async(dispatch_get_main_queue(), ^{
237241
[_jailbreak_button setTitle:@"Fixing icons" forState:UIControlStateDisabled];
238242
});

0 commit comments

Comments
 (0)