fix(exit): taskkill rieng tung process — kill het plugin_host/fx_vst_bridge khi thoat app (truoc day /IM gop chi chay lenh dau); CREATE_NO_WINDOW cho moi subprocess engine (het terminal chớp chớp)

This commit is contained in:
2026-08-22 18:06:26 +07:00
parent f143646ba7
commit 14265515aa
6 changed files with 30 additions and 16 deletions
+9 -7
View File
@@ -737,13 +737,15 @@ pub fn run() {
// dot ngot (watchdog graceful shutdown treo vi LAN client).
// Task Manager dong app -> Destroyed khong chay -> engine tu
// thoat nho watchdog; o day dong app binh thuong -> quet het.
let _ = std::process::Command::new("taskkill")
.args(["/IM", "daw_engine.exe", "/T", "/F"])
.status();
let _ = std::process::Command::new("taskkill")
.args(["/IM", "daw_vst_bridge.exe", "/T", "/F",
"/IM", "fx_vst_bridge.exe", "/T", "/F"])
.status();
// taskkill chi nhan MOT /IM moi lan goi — goi rieng cho tung
// process, khong gop /IM ... /IM (truoc day chi cai dau chay,
// fx_vst_bridge/plugin_host song sot thanh orphan).
for im in ["daw_engine.exe", "daw_vst_bridge.exe",
"fx_vst_bridge.exe", "plugin_host.exe"] {
let _ = std::process::Command::new("taskkill")
.args(["/IM", im, "/T", "/F"])
.status();
}
window.app_handle().exit(0);
}
}