🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
Guard against missing active track (#2996)
Matthias Schmidtff8dca5abe39
diff --git a/core/playback/device.go b/core/playback/device.goindex 1edb37636..82e22334b 100644--- a/core/playback/device.go+++ b/core/playback/device.go@@ -269,7 +269,9 @@ func (pd *playbackDevice) trackSwitcherGoroutine() {if err != nil {log.Error("Error switching track", err)}- pd.ActiveTrack.Unpause()+ if pd.ActiveTrack != nil {+ pd.ActiveTrack.Unpause()+ }} else {log.Debug("There is no song left in the playlist. Finish.")}