From 178b362048e3c8a1a10ddc1be7946efdda7f2b18 Mon Sep 17 00:00:00 2001 From: Arne Seime Date: Sun, 7 Jul 2024 20:30:12 +0200 Subject: [PATCH] Catch exception in selector --- .../binding/esphome/internal/comm/ConnectionSelector.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/no/seime/openhab/binding/esphome/internal/comm/ConnectionSelector.java b/src/main/java/no/seime/openhab/binding/esphome/internal/comm/ConnectionSelector.java index 1d075ce..420065a 100644 --- a/src/main/java/no/seime/openhab/binding/esphome/internal/comm/ConnectionSelector.java +++ b/src/main/java/no/seime/openhab/binding/esphome/internal/comm/ConnectionSelector.java @@ -84,6 +84,8 @@ private void processKey(SelectionKey readyKey) { } catch (IOException | CancelledKeyException e) { logger.debug("Socket exception", e); frameHelper.endOfStream(); + } catch (Exception e) { + logger.warn("Error processing key", e); } }