diff --git a/internal/radio/icecast.go b/internal/radio/icecast.go index a22cb3c..362b969 100644 --- a/internal/radio/icecast.go +++ b/internal/radio/icecast.go @@ -183,7 +183,9 @@ func (pw *PlaylistLogWatcher) Watch(playlistPath string, n int) (err error) { pw.watcher.WatchForMask(pw.changed, watcher.ModIgnMask) - lastPlayedCache = make([]Song, 0, n) + if lastPlayedCache == nil { + lastPlayedCache = make([]Song, 0, n) + } go func() { for {