Fixes log flooding from protocol error (#15252)

Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>
This commit is contained in:
morph166955
2023-07-17 12:34:34 +02:00
committed by GitHub
parent 075592f4df
commit ca4d332acd
2 changed files with 5 additions and 0 deletions
@@ -184,6 +184,10 @@ public class GoogleTVConnectionManager {
initialize();
}
public AndroidTVHandler getHandler() {
return handler;
}
public String getThingID() {
return handler.getThingID();
}
@@ -56,6 +56,7 @@ public class GoogleTVMessageParser {
try {
if (msg.startsWith(DELIMITER_1A)) {
logger.warn("{} - GoogleTV Error Message: {}", thingId, msg);
callback.getHandler().dispose();
} else if (msg.startsWith(DELIMITER_0A)) {
// First message on connection from GTV
//