fix bug: cannot play next song

This commit is contained in:
raziman 2021-02-27 15:52:13 +08:00
parent 0476c1d070
commit 1520b685b3

View File

@ -127,7 +127,7 @@ func (p *Player) Run(currSong Audio) error {
p.isRunning = false
p.format = nil
p.streamSeekCloser.Close()
p.execSongFinish(currSong)
go p.execSongFinish(currSong)
}))
ctrl := &beep.Ctrl{