mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-26 15:21:41 +01:00
Fixes log flooding from protocol error (#15252)
Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>
This commit is contained in:
parent
075592f4df
commit
ca4d332acd
@ -184,6 +184,10 @@ public class GoogleTVConnectionManager {
|
|||||||
initialize();
|
initialize();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public AndroidTVHandler getHandler() {
|
||||||
|
return handler;
|
||||||
|
}
|
||||||
|
|
||||||
public String getThingID() {
|
public String getThingID() {
|
||||||
return handler.getThingID();
|
return handler.getThingID();
|
||||||
}
|
}
|
||||||
|
@ -56,6 +56,7 @@ public class GoogleTVMessageParser {
|
|||||||
try {
|
try {
|
||||||
if (msg.startsWith(DELIMITER_1A)) {
|
if (msg.startsWith(DELIMITER_1A)) {
|
||||||
logger.warn("{} - GoogleTV Error Message: {}", thingId, msg);
|
logger.warn("{} - GoogleTV Error Message: {}", thingId, msg);
|
||||||
|
callback.getHandler().dispose();
|
||||||
} else if (msg.startsWith(DELIMITER_0A)) {
|
} else if (msg.startsWith(DELIMITER_0A)) {
|
||||||
// First message on connection from GTV
|
// First message on connection from GTV
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user