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

Commit

Permalink
Don't look for background updates unless Wrangler finished successful…
Browse files Browse the repository at this point in the history
…ly (#2150)

This works around a segfault due to Openssl's exit handlers not being thread-safe.

Co-authored-by: Sunil Pai <[email protected]>
  • Loading branch information
jyn514 and threepointone authored Dec 13, 2021
1 parent f41ec5e commit 4c2c784
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ fn main() -> Result<()> {
}
env_logger::init();

let latest_version_receiver = background_check_for_updates();
if let Ok(me) = env::current_exe() {
// If we're actually running as the installer then execute our
// self-installation, otherwise just continue as usual.
Expand All @@ -36,7 +35,7 @@ fn main() -> Result<()> {
}
}
run()?;
if let Ok(latest_version) = latest_version_receiver.try_recv() {
if let Ok(latest_version) = background_check_for_updates().try_recv() {
let latest_version = styles::highlight(latest_version.to_string());
let new_version_available = format!(
"A new version of Wrangler ({}) is available!",
Expand Down

0 comments on commit 4c2c784

Please sign in to comment.