Skip to content

Commit

Permalink
fix: peek correct track if about to play queue
Browse files Browse the repository at this point in the history
  • Loading branch information
devgianlu committed Jul 25, 2024
1 parent 70aef7c commit d1cf460
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tracks/tracks.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ func (tl *List) GoStart() bool {
func (tl *List) PeekNext() *connectpb.ContextTrack {
if tl.playingQueue && len(tl.queue) > 1 {
return tl.queue[1]
} else if !tl.playingQueue && len(tl.queue) > 0 {
return tl.queue[0]
}

iter := tl.tracks.iterHere()
Expand Down

0 comments on commit d1cf460

Please sign in to comment.