Skip to content

Fix #357 - Added check for REPLACED TrackEndReason

Mateusz Brawański requested to merge github/fork/xt449/fix-357 into master

Created by: xt449

Make sure you familiarize yourself with our contributing guidelines.

Summary

Fixes #357 (closed) LavalinkGuildConnection#InternalPlaybackFinishedAsync now check that the TrackEndReason is not Replaced before setting the current track to default.

Details

InternalPlaybackFinishedAsync now works properly for TrackEndReason.Replaced

Changes proposed

Add

if (e.Reason != TrackEndReason.Replaced) this.CurrentState.CurrentTrack = default;

as proposed by #357 (closed)

Merge request reports

Loading