Avoid spurious crash reporting

This commit is contained in:
Michael Kirk 2018-11-19 11:20:19 -06:00
parent 2c344f6a5b
commit 7aad3a9e7a
2 changed files with 3 additions and 2 deletions

View file

@ -311,7 +311,8 @@ static NSTimeInterval launchStartedAt;
[[UIApplication sharedApplication] scheduleLocalNotification:notification]; [[UIApplication sharedApplication] scheduleLocalNotification:notification];
[UIApplication.sharedApplication setApplicationIconBadgeNumber:1]; [UIApplication.sharedApplication setApplicationIconBadgeNumber:1];
OWSFail(@"!isDatabasePasswordAccessible."); [DDLog flushLog];
exit(0);
} }
} }

View file

@ -142,7 +142,7 @@ NS_ASSUME_NONNULL_BEGIN
[self clearAllNotifications]; [self clearAllNotifications];
[DebugLogger.sharedLogger wipeLogs]; [DebugLogger.sharedLogger wipeLogs];
OWSFail(@"App data reset."); exit(0);
} }
+ (void)clearAllNotifications + (void)clearAllNotifications