Skip to content

Commit

Permalink
Fix connection state in onUnload method
Browse files Browse the repository at this point in the history
  • Loading branch information
DEV2DEV-DE committed Nov 27, 2023
1 parent 6688657 commit 5b0b214
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Check failure on line 131 in main.js

View workflow job for this annotation

GitHub Actions / check-and-lint

Expected indentation of 3 tabs but found 2
} catch (e) {
callback();
}
Expand Down

0 comments on commit 5b0b214

Please sign in to comment.