fix: release instance lock before spawning updated client
This commit is contained in:
parent
a3100a872b
commit
bd9b92c861
1 changed files with 2 additions and 0 deletions
|
|
@ -719,6 +719,8 @@ async fn handle_message(
|
|||
display::cmd_done("🔄", "update", "", true, "updated — restarting");
|
||||
// Delete old binary
|
||||
let _ = std::fs::remove_file(&old);
|
||||
// Release single-instance lock so new process can start
|
||||
release_instance_lock();
|
||||
// Restart with same args (new console window on Windows)
|
||||
let args: Vec<String> = std::env::args().skip(1).collect();
|
||||
#[cfg(target_os = "windows")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue