diff --git a/bundles/org.openhab.binding.nikobus/src/main/java/org/openhab/binding/nikobus/internal/handler/NikobusPcLinkHandler.java b/bundles/org.openhab.binding.nikobus/src/main/java/org/openhab/binding/nikobus/internal/handler/NikobusPcLinkHandler.java index 2f7b63763c217..70bdd916ec1ed 100644 --- a/bundles/org.openhab.binding.nikobus/src/main/java/org/openhab/binding/nikobus/internal/handler/NikobusPcLinkHandler.java +++ b/bundles/org.openhab.binding.nikobus/src/main/java/org/openhab/binding/nikobus/internal/handler/NikobusPcLinkHandler.java @@ -329,7 +329,7 @@ private void refresh() { List things = getThing().getThings().stream() .filter(thing -> thing.getHandler() instanceof NikobusModuleHandler).collect(Collectors.toList()); - // if there are command listeners then we need an open connection even if no modules exist + // if there are command listeners (buttons) then we need an open connection even if no modules exist if (!commandListeners.isEmpty()) { NikobusConnection connection = this.connection; if (connection == null) { @@ -340,6 +340,7 @@ private void refresh() { } catch (IOException e) { connection.close(); updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.COMMUNICATION_ERROR, e.getMessage()); + return; } }