fix: release instance lock before spawning updated client

This commit is contained in:
Helios Agent 2026-03-06 14:30:49 +01:00
parent a3100a872b
commit bd9b92c861
No known key found for this signature in database
GPG key ID: C8259547CD8309B5

View file

@ -719,6 +719,8 @@ async fn handle_message(
display::cmd_done("🔄", "update", "", true, "updated — restarting"); display::cmd_done("🔄", "update", "", true, "updated — restarting");
// Delete old binary // Delete old binary
let _ = std::fs::remove_file(&old); 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) // Restart with same args (new console window on Windows)
let args: Vec<String> = std::env::args().skip(1).collect(); let args: Vec<String> = std::env::args().skip(1).collect();
#[cfg(target_os = "windows")] #[cfg(target_os = "windows")]