fix song skip bug

This commit is contained in:
raziman 2020-06-25 19:17:59 +08:00
parent 346cea9381
commit 1e486f2741

View File

@ -178,9 +178,6 @@ next:
for {
select {
case <-p.isSkipped:
break next
case <-done:
close(done)
p.position = 0
@ -275,7 +272,6 @@ func (p *Player) TogglePause() {
func (p *Player) Skip() {
if len(p.queue) > 0 {
p.ctrl.Streamer = nil
p.isSkipped <- true
p.done <- true
}
}