Skip to content

Commit

Permalink
[squeezebox] Answer REFRESH command from cache if possible (#7934)
Browse files Browse the repository at this point in the history
Fixes #7928

Signed-off-by: Stefan Triller <[email protected]>
  • Loading branch information
t2000 authored Jun 17, 2020
1 parent 8495b82 commit a1cfacd
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,12 @@ public void handleCommand(ChannelUID channelUID, Command command) {
}
String mac = getConfigAs(SqueezeBoxPlayerConfig.class).mac;

// Some of the code below is not designed to handle REFRESH
// Some of the code below is not designed to handle REFRESH, only reply to channels where cached values exist
if (command == RefreshType.REFRESH) {
String channelID = channelUID.getId();
if (stateMap.containsKey(channelID)) {
updateState(channelID, stateMap.get(channelID));
}
return;
}

Expand Down

0 comments on commit a1cfacd

Please sign in to comment.