Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Check for updates in the foreground, not the background #2166

Merged
merged 1 commit into from
Dec 22, 2021

Conversation

jyn514
Copy link
Contributor

@jyn514 jyn514 commented Dec 22, 2021

This avoids creating a new OpenSSL context while the main thread exits the process.

The issue that #2161 ran into is that try_recv is non-blocking, so it would exit the process before the spawned thread finished creating the reqwest::Client.

Fixes #2161.

@jyn514 jyn514 requested a review from a team as a code owner December 22, 2021 18:31
This avoids creating a new OpenSSL context while the main thread exits the process.
Copy link
Contributor

@threepointone threepointone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🦶

@jyn514 jyn514 merged commit 4c92c94 into master Dec 22, 2021
@delete-merged-branch delete-merged-branch bot deleted the jnelson/foreground-update branch December 22, 2021 18:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1.19.6 Regression Segmentation fault
2 participants