Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Default behavior should not be enabling crash recovery race condition #245

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/ios/MyMainViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,8 @@ - (void)viewDidLoad
}

// Start timer which periodically checks whether the app is alive
if (![self settingForKey:@"DisableCrashRecovery"] || ![[self settingForKey:@"DisableCrashRecovery"] boolValue]) {
if ([[self settingForKey:@"EnableCrashRecovery"] boolValue]) {
NSLog(@"NOTICE: Crash recovery enabled, this relies on checking page title and a blank title can trigger recovery");
_crashRecoveryTimer = [NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(recoverFromCrash) userInfo:nil repeats:YES];
}
}
Expand Down