Skip to content

Commit

Permalink
fix: Only consider completed crash-reports for session status (#719)
Browse files Browse the repository at this point in the history
  • Loading branch information
supervacuus authored May 30, 2022
1 parent 0a498e3 commit 6694b19
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/backends/sentry_backend_crashpad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -409,14 +409,6 @@ sentry__crashpad_backend_last_crash(sentry_backend_t *backend)
uint64_t crash_time = 0;

std::vector<crashpad::CrashReportDatabase::Report> reports;
if (data->db->GetPendingReports(&reports)
== crashpad::CrashReportDatabase::kNoError) {
for (const crashpad::CrashReportDatabase::Report &report : reports) {
report_crash_time(&crash_time, report);
}
}

reports.clear();
if (data->db->GetCompletedReports(&reports)
== crashpad::CrashReportDatabase::kNoError) {
for (const crashpad::CrashReportDatabase::Report &report : reports) {
Expand Down

0 comments on commit 6694b19

Please sign in to comment.