Skip to content

Commit

Permalink
[tibber] Partial revert of PR 8033 (openhab#8071)
Browse files Browse the repository at this point in the history
Related to openhab#8027

Signed-off-by: Laurent Garnier <[email protected]>
Signed-off-by: MPH80 <[email protected]>
  • Loading branch information
lolodomo authored and MPH80 committed Aug 3, 2020
1 parent 22a00d4 commit 8ce2003
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -356,10 +356,12 @@ public void close() {
this.session = null;
this.socket = null;
}
Future<?> sessionFuture = this.sessionFuture;
if (sessionFuture != null && !sessionFuture.isDone()) {
sessionFuture.cancel(true);
}
if (client != null && client.isStarted()) {
WebSocketClient client = this.client;
if (client != null) {
try {
client.stop();
} catch (Exception e) {
Expand Down

0 comments on commit 8ce2003

Please sign in to comment.