Skip to content

Commit

Permalink
kill jukebox process on quit
Browse files Browse the repository at this point in the history
  • Loading branch information
sentriz committed Oct 9, 2023
1 parent d839959 commit 219aa74
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jukebox/jukebox.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 219aa74

Please sign in to comment.