Skip to content

Commit

Permalink
Improve rampdown onUnload()
Browse files Browse the repository at this point in the history
  • Loading branch information
DEV2DEV-DE committed Nov 29, 2023
1 parent 4904c72 commit 352ba02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ class Jablotron extends utils.Adapter {
async onUnload(callback) {
try {
await this.setState('info.connection', { val: false, ack: true });
if (this.timeout) this.clearTimeout(this.timeout);
if (this.timeout) await this.clearTimeout(this.timeout);
callback();
} catch (e) {
callback();
Expand Down

0 comments on commit 352ba02

Please sign in to comment.