Skip to content

Commit

Permalink
increase stop timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
TA2k committed Jan 25, 2024
1 parent c2345b9 commit 200e151
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion io-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@
"sentry": {
"dsn": "https://802f699c7aa84a62b0bcb54b31485352@sentry.iobroker.net/226"
}
}
},
"stopTimeout": 2000
},
"encryptedNative": ["token"],
"protectedNative": ["token"],
Expand Down
2 changes: 2 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,8 @@ class Tedee extends utils.Adapter {
*/
async onUnload(callback) {
try {
//wait to prevent busy bridge
await this.sleep(500);
await this.cleanWebhooks();
this.setState('info.connection', false, true);
this.refreshTimeout && clearTimeout(this.refreshTimeout);
Expand Down

0 comments on commit 200e151

Please sign in to comment.