Skip to content
This repository has been archived by the owner on Feb 19, 2020. It is now read-only.

Commit

Permalink
Fix analyzerInProgress file always being reset at app start
Browse files Browse the repository at this point in the history
With this line in place, the analyzerInProgress file that is used to detect errors/crashes in previous crash processing is always reset at app start.
This prevents proper error detection if crash processing crashes/didn't finish in the previous run.
  • Loading branch information
lumaxis committed Jul 8, 2016
1 parent fa38499 commit 22c40b7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Classes/BITCrashManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,6 @@ - (instancetype)init {
_settingsFile = [_crashesDir stringByAppendingPathComponent:BITHOCKEY_CRASH_SETTINGS];
_analyzerInProgressFile = [_crashesDir stringByAppendingPathComponent:BITHOCKEY_CRASH_ANALYZER];

if ([_fileManager fileExistsAtPath:_analyzerInProgressFile]) {
NSError *error = nil;
[_fileManager removeItemAtPath:_analyzerInProgressFile error:&error];
}

if (!BITHockeyBundle() && !bit_isRunningInAppExtension()) {
NSLog(@"[HockeySDK] WARNING: %@ is missing, will send reports automatically!", BITHOCKEYSDK_BUNDLE);
Expand Down

0 comments on commit 22c40b7

Please sign in to comment.