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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user