Skip to content

Commit

Permalink
Fix playlist repeating
Browse files Browse the repository at this point in the history
  • Loading branch information
duncte123 committed Feb 13, 2018
1 parent ea4c17e commit 671fab3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/ml/duncte123/skybot/audio/TrackScheduler.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,9 @@ public void onTrackEnd(AudioPlayer player, AudioTrack track, AudioTrackEndReason
announceNextTrack(lastTrack);
} else {
logger.debug("a playlist.....");
queue(lastTrack.makeClone());
nextTrack();
//Offer it to the queue to prevent the player from playing it
queue.offer(lastTrack.makeClone());
}
} else {
logger.debug("starting next track");
Expand Down

0 comments on commit 671fab3

Please sign in to comment.