Skip to content

Commit

Permalink
Only handle queue end if queue is actually empty
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Dec 25, 2024
1 parent 08d08c7 commit e4062a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion music/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
subprojects {
version = "4.3.0-SNAPSHOT"
version = "4.3.1-SNAPSHOT"

repositories {
maven("https://maven.topi.wtf/releases")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ class MusicPlayer(val link: Link, private val guild: GuildBehavior) : Link by li
return@onTrackEnd
}
if ((!repeat && !loopQueue && queue.isEmpty()) && event.reason != Message.EmittedEvent.TrackEndEvent.AudioTrackEndReason.REPLACED) {
if (autoPlay == null) {
if (autoPlay == null && queue.isEmpty()) {
playingTrack = null
updateMusicChannelMessage()
startLeaveTimeout()
Expand Down

0 comments on commit e4062a5

Please sign in to comment.