Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flushOnLaunch() does not cancel previous requests if they timeout, leading to potential duplicate reports #593

Merged
merged 2 commits into from
Sep 23, 2019

Conversation

fractalwrench
Copy link
Contributor

Goal

cancelQueuedFiles() prevents a file being sent again in a duplicate error report. This was
inappropriately called in flushOnLaunch() before flushErrorReports() completed in a background thread, which could result in duplicate error reports if flushAsync() was called while waiting for completion.

This changeset removes the call and immediately cancels non-launch crash reports. The SDK not relies on flushErrorReport(), which cancels/deletes each file once the request has completed.

cancelQueuedFiles() prevents a file being sent again in a duplicate error report. This was
inappropriately called in flushOnLaunch() before flushErrorReports() completed in a background
thread, which could result in duplicate error reports. This removes the call, immediately cancels
non-launch crash reports, and allows flushErrorReport() to cancel/delete each file as appropriate
once the request has finished.
@fractalwrench fractalwrench merged commit 7d84452 into master Sep 23, 2019
@fractalwrench fractalwrench deleted the cancel-queued-files branch September 23, 2019 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants