mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-25 14:55:55 +01:00
[squeezebox] Fix notification sometimes plays last playlist item first (#16368)
Fixes #16367 Signed-off-by: Stefan Triller <github@stefantriller.de>
This commit is contained in:
parent
ce0799b60c
commit
7c05e8f585
@ -77,10 +77,6 @@ class SqueezeBoxNotificationPlayer implements Closeable {
|
||||
|
||||
private void setupPlayerForNotification() throws InterruptedException, SqueezeBoxTimeoutException {
|
||||
logger.debug("Setting up player for notification");
|
||||
if (!playerState.isPoweredOn()) {
|
||||
logger.debug("Powering on the player");
|
||||
squeezeBoxServerHandler.powerOn(mac);
|
||||
}
|
||||
if (playerState.isShuffling()) {
|
||||
logger.debug("Turning off shuffle");
|
||||
squeezeBoxServerHandler.setShuffleMode(mac, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user