Skip to content

Commit

Permalink
always reset player.Track
Browse files Browse the repository at this point in the history
  • Loading branch information
topi314 committed Aug 22, 2024
1 parent 48ba7ab commit fcc3de6
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions disgolink/player.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,14 +209,6 @@ func (p *playerImpl) OnEvent(event lavalink.Event) {
p.track = &e.Track

case lavalink.TrackEndEvent:
if e.Reason != lavalink.TrackEndReasonReplaced && e.Reason != lavalink.TrackEndReasonStopped {
p.track = nil
}

case lavalink.TrackExceptionEvent:
p.track = nil

case lavalink.TrackStuckEvent:
p.track = nil

case lavalink.WebSocketClosedEvent:
Expand Down

0 comments on commit fcc3de6

Please sign in to comment.