Skip to content

Commit 623c108

Browse files
committed
Fixed shuffling issue (#94)
1 parent 40b2840 commit 623c108

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • core/src/main/java/xyz/gianlu/librespot/player

core/src/main/java/xyz/gianlu/librespot/player/Player.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ private void loadPage(@NotNull Remote3Page page, @Nullable TrackSelector selecto
845845

846846
state.setPlayingTrackIndex(selector == null ? 0 : selector.playingIndex());
847847

848-
shuffleTracks((selector == null || !selector.findMatch()) && state.getShuffle());
848+
if (state.getShuffle()) shuffleTracks(selector == null || !selector.findMatch());
849849
}
850850

851851
void load(@NotNull Remote3Frame frame) throws IOException, MercuryClient.MercuryException, SpotifyContext.UnsupportedContextException {

0 commit comments

Comments
 (0)