mirror of
https://github.com/issadarkthing/gomu.git
synced 2025-05-02 22:17:09 +08:00
fix song skip bug
This commit is contained in:
parent
346cea9381
commit
1e486f2741
@ -178,9 +178,6 @@ next:
|
|||||||
for {
|
for {
|
||||||
|
|
||||||
select {
|
select {
|
||||||
case <-p.isSkipped:
|
|
||||||
break next
|
|
||||||
|
|
||||||
case <-done:
|
case <-done:
|
||||||
close(done)
|
close(done)
|
||||||
p.position = 0
|
p.position = 0
|
||||||
@ -275,7 +272,6 @@ func (p *Player) TogglePause() {
|
|||||||
func (p *Player) Skip() {
|
func (p *Player) Skip() {
|
||||||
if len(p.queue) > 0 {
|
if len(p.queue) > 0 {
|
||||||
p.ctrl.Streamer = nil
|
p.ctrl.Streamer = nil
|
||||||
p.isSkipped <- true
|
|
||||||
p.done <- true
|
p.done <- true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user