From 5b0b2140e8cd9a5aec6f24e06191fbe5e3b29a5d Mon Sep 17 00:00:00 2001 From: DEV2DEV_DE Date: Mon, 27 Nov 2023 13:44:21 +0100 Subject: [PATCH] Fix connection state in onUnload method --- main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index ab614af..4a34d1b 100644 --- a/main.js +++ b/main.js @@ -127,7 +127,8 @@ class Jablotron extends utils.Adapter { onUnload(callback) { try { clearInterval(this.refreshInterval); - callback(); + this.setStateAsync('info.connection', { val: true, ack: true }); + callback(); } catch (e) { callback(); }