kill jukebox process on quit

This commit is contained in:
sentriz
2023-10-09 22:14:33 +01:00
parent d839959301
commit 219aa747c9

View File

@@ -313,6 +313,10 @@ func (j *Jukebox) Quit() error {
go func() {
_, _ = j.conn.Call("quit")
}()
time.Sleep(250 * time.Millisecond)
_ = j.cmd.Process.Kill()
if err := j.conn.Close(); err != nil {
return fmt.Errorf("close: %w", err)
}