From fcc3de6272e9c79fa803274d9ef4d4281feb1ff4 Mon Sep 17 00:00:00 2001 From: topi314 Date: Thu, 22 Aug 2024 16:58:09 +0200 Subject: [PATCH] always reset player.Track --- disgolink/player.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/disgolink/player.go b/disgolink/player.go index 1bfb776..b1987bf 100644 --- a/disgolink/player.go +++ b/disgolink/player.go @@ -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: