Hopefully fixed queue not working after awhile
This commit is contained in:
parent
de90223661
commit
803d977e27
|
@ -67,7 +67,7 @@ func (q *SongQueue) OnItemFinished() {
|
||||||
q.NextItem()
|
q.NextItem()
|
||||||
q.PrepareAndPlayNextItem()
|
q.PrepareAndPlayNextItem()
|
||||||
} else {
|
} else {
|
||||||
q.queue = q.queue[1:]
|
q.queue = q.queue[:0]
|
||||||
}
|
}
|
||||||
} else if q.CurrentItem().(*Playlist).songs.Len() > 1 {
|
} else if q.CurrentItem().(*Playlist).songs.Len() > 1 {
|
||||||
q.CurrentItem().(*Playlist).songs.NextItem()
|
q.CurrentItem().(*Playlist).songs.NextItem()
|
||||||
|
@ -76,6 +76,8 @@ func (q *SongQueue) OnItemFinished() {
|
||||||
if q.Len() > 1 {
|
if q.Len() > 1 {
|
||||||
q.NextItem()
|
q.NextItem()
|
||||||
q.PrepareAndPlayNextItem()
|
q.PrepareAndPlayNextItem()
|
||||||
|
} else {
|
||||||
|
q.queue = q.queue[:0]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -86,6 +88,8 @@ func (q *SongQueue) OnItemFinished() {
|
||||||
if q.Len() > 1 {
|
if q.Len() > 1 {
|
||||||
q.NextItem()
|
q.NextItem()
|
||||||
q.PrepareAndPlayNextItem()
|
q.PrepareAndPlayNextItem()
|
||||||
|
} else {
|
||||||
|
q.queue = q.queue[:0]
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
panic(err)
|
panic(err)
|
||||||
|
|
Reference in a new issue