diff --git a/bundles/org.openhab.binding.openthermgateway/src/main/java/org/openhab/binding/openthermgateway/handler/OpenThermGatewayHandler.java b/bundles/org.openhab.binding.openthermgateway/src/main/java/org/openhab/binding/openthermgateway/handler/OpenThermGatewayHandler.java index 06809cd3a5f..314e8d5499f 100644 --- a/bundles/org.openhab.binding.openthermgateway/src/main/java/org/openhab/binding/openthermgateway/handler/OpenThermGatewayHandler.java +++ b/bundles/org.openhab.binding.openthermgateway/src/main/java/org/openhab/binding/openthermgateway/handler/OpenThermGatewayHandler.java @@ -237,13 +237,14 @@ public class OpenThermGatewayHandler extends BaseBridgeHandler implements OpenTh } private void disconnect() { - @Nullable - OpenThermGatewayConnector conn = connector; + updateStatus(ThingStatus.OFFLINE); autoReconnect = false; cancelAutoReconnect(); + @Nullable + OpenThermGatewayConnector conn = connector; if (conn != null) { conn.stop(); connector = null;