Skip to content

Commit 6ceb970

Browse files
committed
Always start playing if not specified otherwise (#96)
1 parent f9fc35e commit 6ceb970

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

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

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,7 @@ private void panicState() {
357357
}
358358

359359
private void handleLoad(@NotNull Remote3Frame frame) {
360-
boolean wasInactive = false;
361360
if (!spirc.deviceState().getIsActive()) {
362-
wasInactive = true;
363361
spirc.deviceState()
364362
.setIsActive(true)
365363
.setBecameActiveAt(TimeProvider.currentTimeMillis());
@@ -384,7 +382,7 @@ private void handleLoad(@NotNull Remote3Frame frame) {
384382

385383
boolean play;
386384
if (frame.options.initiallyPaused != null) play = !frame.options.initiallyPaused;
387-
else play = !wasInactive;
385+
else play = true;
388386
loadTrack(play);
389387
}
390388

0 commit comments

Comments
 (0)