Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[androidtv] Fixes log flooding from protocol error #15252

Merged
merged 1 commit into from
Jul 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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