mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-28 04:23:32 +01:00
cli: fix closing incorrectly if updated failed (#215595)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user