From 6349b57c65372085f9622cb59acb3833326d59a1 Mon Sep 17 00:00:00 2001 From: Sami Salonen Date: Thu, 25 Jun 2020 00:25:20 +0300 Subject: [PATCH] [modbus] Use RuntimeException (#8007) Signed-off-by: Sami Salonen Signed-off-by: MPH80 --- .../openhab/io/transport/modbus/internal/ModbusManagerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.openhab.io.transport.modbus/src/main/java/org/openhab/io/transport/modbus/internal/ModbusManagerImpl.java b/bundles/org.openhab.io.transport.modbus/src/main/java/org/openhab/io/transport/modbus/internal/ModbusManagerImpl.java index dbf50dcd6aecc..06136ab6e59e9 100644 --- a/bundles/org.openhab.io.transport.modbus/src/main/java/org/openhab/io/transport/modbus/internal/ModbusManagerImpl.java +++ b/bundles/org.openhab.io.transport.modbus/src/main/java/org/openhab/io/transport/modbus/internal/ModbusManagerImpl.java @@ -768,7 +768,7 @@ public void registerRegularPoll(@NonNull PollTask task, long pollPeriodMillis, l started); try { executeOperation(task, false, pollOperation); - } catch (Exception e) { + } catch (RuntimeException e) { // We want to catch all unexpected exceptions since all unhandled exceptions make // ScheduledExecutorService halt the polling. It is better to print out the exception, and try again // (on next poll cycle)