1
0

In a PlaylistNext() handler pass a current song as a copy.

This commit is contained in:
Alexander Andreev 2023-10-07 05:20:27 +04:00
parent f53f30963d
commit 07b0199193
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -65,7 +65,7 @@ func (dj *DJHandlers) PlaylistNext(w http.ResponseWriter, _ *http.Request) {
Duration: oggf.GetDuration(),
MaxListeners: dj.listeners.Current(),
StartAt: time.Now()}
radio.CheckAndUpdateMostListenedSong(dj.songList.Current())
radio.CheckAndUpdateMostListenedSong(*dj.songList.Current())
dj.songList.Add(song)
}()
}