fix zombie process bug with Wait

This commit is contained in:
mykola2312 2025-08-24 07:52:56 +03:00
parent 257aae83bc
commit 6ebeab58ca

View file

@ -46,8 +46,9 @@ func (mpv *MPV) Spawn() error {
return mpv.cmd.Start()
}
func (mpv *MPV) Stop() error {
return mpv.cmd.Process.Kill()
func (mpv *MPV) Stop() {
mpv.cmd.Process.Kill()
mpv.cmd.Process.Wait()
}
func (mpv *MPV) ExecuteIPC(req *MPVRequest) ([]byte, error) {