delete oklog

This commit is contained in:
sentriz
2023-10-04 20:45:41 +01:00
parent e842b896ec
commit a669ba8598
5 changed files with 190 additions and 126 deletions

View File

@@ -310,9 +310,9 @@ func (j *Jukebox) Quit() error {
if j.conn == nil || j.conn.IsClosed() {
return nil
}
if _, err := j.conn.Call("quit"); err != nil {
return fmt.Errorf("quit: %w", err)
}
go func() {
j.conn.Call("quit")
}()
if err := j.conn.Close(); err != nil {
return fmt.Errorf("close: %w", err)
}