Skip to content

Commit

Permalink
cli: fix closing incorrectly if updated failed (microsoft#215595)
Browse files Browse the repository at this point in the history
  • Loading branch information
connor4312 authored Jun 14, 2024
1 parent d32e093 commit 03d781a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cli/src/tunnels/control_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -920,9 +920,14 @@ async fn handle_update(

info!(log, "Updating CLI to {}", latest_release);

updater
let r = updater
.do_update(&latest_release, SilentCopyProgress())
.await?;
.await;

if let Err(e) = r {
did_update.store(false, Ordering::SeqCst);
return Err(e);
}

Ok(UpdateResult {
up_to_date: true,
Expand Down

0 comments on commit 03d781a

Please sign in to comment.