]> git.basschouten.com Git - openhab-addons.git/commitdiff
[squeezebox] Fix notification sometimes plays last playlist item first (#16368)
authorStefan Triller <t2000@users.noreply.github.com>
Sun, 4 Feb 2024 19:22:23 +0000 (20:22 +0100)
committerGitHub <noreply@github.com>
Sun, 4 Feb 2024 19:22:23 +0000 (20:22 +0100)
Fixes #16367

Signed-off-by: Stefan Triller <github@stefantriller.de>
bundles/org.openhab.binding.squeezebox/src/main/java/org/openhab/binding/squeezebox/internal/handler/SqueezeBoxNotificationPlayer.java

index 143e73eae01c1a2a169dd36d984ef5f59661c7f0..eb2c36d18b85cb73f160686002b08fc682ea19e2 100644 (file)
@@ -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);