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

Don't look for background updates unless Wrangler finished successfully #2150

Merged
merged 2 commits into from
Dec 13, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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