Skip to content

Commit 2bf56aa

Browse files
Turn on deadlock detection
1 parent 8aad73c commit 2bf56aa

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

ChatSecure/Classes/OTRAppDelegate.m

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,13 +186,18 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
186186
- (void) setupCrashReporting {
187187
KSCrash *crash = [KSCrash sharedInstance];
188188
crash.monitoring = KSCrashMonitorTypeProductionSafeMinimal;
189-
/*
190-
#warning Change this to KSCrashMonitorTypeProductionSafeMinimal before App Store release!
191-
#warning Otherwise it may crash for pauses longer than the deadlockWatchdogInterval!
192189

190+
//#warning Change this to KSCrashMonitorTypeProductionSafeMinimal before App Store release!
191+
//#warning Otherwise it may crash for pauses longer than the deadlockWatchdogInterval!
192+
193+
// People are reporting deadlocks again...
194+
// Let's turn this back on for a little while.
195+
#if DEBUG
196+
crash.monitoring = KSCrashMonitorTypeDebuggerSafe;
197+
#else
193198
crash.monitoring = KSCrashMonitorTypeAll;
194-
crash.deadlockWatchdogInterval = 10;
195-
*/
199+
crash.deadlockWatchdogInterval = 20;
200+
#endif
196201

197202
// Setup Crash Reporting
198203
KSCrashInstallationHockey* installation = [KSCrashInstallationHockey sharedInstance];

0 commit comments

Comments
 (0)