Skip to content

Commit

Permalink
[openthermgateway] transition bridge state via offline to online (ope…
Browse files Browse the repository at this point in the history
…nhab#12744)

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
  • Loading branch information
andrewfg authored and andrasU committed Nov 12, 2022
1 parent 8d98be7 commit babb8cc
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,13 +237,14 @@ private void connect() {
}

private void disconnect() {
@Nullable
OpenThermGatewayConnector conn = connector;
updateStatus(ThingStatus.OFFLINE);

autoReconnect = false;

cancelAutoReconnect();

@Nullable
OpenThermGatewayConnector conn = connector;
if (conn != null) {
conn.stop();
connector = null;
Expand Down

0 comments on commit babb8cc

Please sign in to comment.