Skip to content

Commit

Permalink
Fixes log flooding from protocol error (#15252)
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>
  • Loading branch information
morph166955 committed Jul 17, 2023
1 parent 075592f commit ca4d332
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@ public GoogleTVConnectionManager(AndroidTVHandler handler, GoogleTVConfiguration
initialize();
}

public AndroidTVHandler getHandler() {
return handler;
}

public String getThingID() {
return handler.getThingID();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public void handleMessage(String msg) {
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
//
Expand Down

0 comments on commit ca4d332

Please sign in to comment.