Skip to content

Commit

Permalink
DOUBLE REPORT LINES COMMENTED
Browse files Browse the repository at this point in the history
  • Loading branch information
cdillard-NewRelic committed Jan 24, 2024
1 parent 0d876ec commit 719a7ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Agent/CrashHandler/NRMAExceptionHandlerManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ - (instancetype) initWithLastSessionsAttributes:(NSDictionary*)attributes
[_reportManager processReportsWithSessionAttributes:attributes
analyticsEvents:events];

// DOUBLE REPORT POSSIBLE: [NRMAExceptionHandler calls uploadCrashReports when _crashReporter hasPendingCrashreport] is true on app launch.
[self.uploader uploadCrashReports];
}

Expand Down
1 change: 1 addition & 0 deletions Agent/General/NewRelicAgentInternal.m
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,7 @@ - (void) onSessionStart {
// Attempt to upload crash report files (if any exist)
if ([NRMAFlags shouldEnableCrashReporting]) {

// DOUBLE REPORT POSSIBLE: Upload crash reports is called when "onSessionStart" fires due to [NewRelicAgentInternal applicationWillEnterForeground];
[[NRMAExceptionHandlerManager manager].uploader uploadCrashReports];
}

Expand Down

0 comments on commit 719a7ae

Please sign in to comment.