[samsungtv] Fix reconnect after first connection to TV is lost (#11487)
* Fix reconnect after first connection to TV is lost. Fixes #7055 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> * Reduced log level to TRACE for logging of entered methods several times per second. Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
parent
8c83c27c57
commit
43090b9b29
@ -375,6 +375,7 @@ public class SamsungTvHandler extends BaseThingHandler implements RegistryListen
|
||||
logger.debug("Device removed: udn={}", upnpUDN);
|
||||
shutdown();
|
||||
putOffline();
|
||||
checkCreateManualConnection();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -109,7 +109,7 @@ public class MainTVServerService implements UpnpIOParticipant, SamsungTvService
|
||||
|
||||
@Override
|
||||
public void handleCommand(String channel, Command command) {
|
||||
logger.debug("Received channel: {}, command: {}", channel, command);
|
||||
logger.trace("Received channel: {}, command: {}", channel, command);
|
||||
|
||||
if (!started) {
|
||||
return;
|
||||
|
||||
@ -174,7 +174,7 @@ public class RemoteControllerService implements SamsungTvService, RemoteControll
|
||||
supported = new ArrayList<>(supported);
|
||||
supported.addAll(extraSupportedCommandsWebSocket);
|
||||
}
|
||||
logger.debug("getSupportedChannelNames: {}", supported);
|
||||
logger.trace("getSupportedChannelNames: {}", supported);
|
||||
return supported;
|
||||
}
|
||||
|
||||
@ -254,7 +254,7 @@ public class RemoteControllerService implements SamsungTvService, RemoteControll
|
||||
|
||||
@Override
|
||||
public void handleCommand(String channel, Command command) {
|
||||
logger.debug("Received channel: {}, command: {}", channel, command);
|
||||
logger.trace("Received channel: {}, command: {}", channel, command);
|
||||
if (command == RefreshType.REFRESH) {
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user