diff --git a/internal/http/dj_handlers.go b/internal/http/dj_handlers.go index cfb12fd..891f5c5 100644 --- a/internal/http/dj_handlers.go +++ b/internal/http/dj_handlers.go @@ -65,8 +65,8 @@ func (dj *DJHandlers) PlaylistNext(w http.ResponseWriter, _ *http.Request) { Duration: oggf.GetDuration(), MaxListeners: dj.listeners.Current(), StartAt: time.Now()} - radio.CheckAndUpdateMostListenedSong(*dj.songList.Current()) dj.songList.Add(song) + radio.CheckAndUpdateMostListenedSong(*dj.songList.Current()) }() } fmt.Fprintln(w, nxt)