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(); }