Skip to content

Commit

Permalink
bug(core/playback/mpv): jukebox mode under windows - navidrome#2767
Browse files Browse the repository at this point in the history
Early return for Close on Windows

Signed-off-by: apkatsikas <apkatsikas@gmail.com>
  • Loading branch information
apkatsikas committed Apr 12, 2024
1 parent bf29e59 commit 93bb3ce
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/playback/mpv/track.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ package mpv
import (
"fmt"
"os"
"runtime"
"time"

"github.com/dexterlb/mpvipc"
Expand Down Expand Up @@ -103,6 +104,11 @@ func (t *MpvTrack) Pause() {
}

func (t *MpvTrack) Close() {
// Windows automatically handles closing
// and cleaning up named pipe
if runtime.GOOS == "windows" {
return
}
log.Debug("Closing resources", "track", t)
t.CloseCalled = true
// trying to shutdown mpv process using socket
Expand Down

0 comments on commit 93bb3ce

Please sign in to comment.