mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
Bug Fix - Websocket reconnect after server failure (#13537)
Signed-off-by: kjoglum <stiankj@online.no>
This commit is contained in:
parent
90ac9c7b78
commit
6103c30830
@ -346,10 +346,8 @@ public class TibberHandler extends BaseThingHandler {
|
||||
Thread.sleep(10 * 1000);
|
||||
} catch (InterruptedException e) {
|
||||
}
|
||||
Session session = this.session;
|
||||
if (!session.isOpen()) {
|
||||
close();
|
||||
logger.warn("Unable to establish websocket session");
|
||||
if (!isConnected()) {
|
||||
logger.warn("Unable to establish websocket session - Reattempting connection on next refresh");
|
||||
} else {
|
||||
logger.debug("Websocket session established");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user