Fixes log flooding from protocol error (#15252)

Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>
This commit is contained in:
morph166955 2023-07-17 05:34:34 -05:00 committed by GitHub
parent 075592f4df
commit ca4d332acd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -184,6 +184,10 @@ public class GoogleTVConnectionManager {
initialize();
}
public AndroidTVHandler getHandler() {
return handler;
}
public String getThingID() {
return handler.getThingID();
}

View File

@ -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
//