Skip to content

Commit

Permalink
remove unused timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
TA2k committed Dec 16, 2023
1 parent 4911c08 commit add612d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ class Tedee extends utils.Adapter {
timeout: 3 * 60 * 1000, //3min client timeout
});
this.updateInterval = null;
this.reLoginTimeout = null;
this.refreshTokenTimeout = null;
this.session = {};
this.states = {
state: {
Expand Down Expand Up @@ -309,10 +307,7 @@ class Tedee extends utils.Adapter {
await this.cleanWebhooks();
this.setState('info.connection', false, true);
this.refreshTimeout && clearTimeout(this.refreshTimeout);
this.reLoginTimeout && clearTimeout(this.reLoginTimeout);
this.refreshTokenTimeout && clearTimeout(this.refreshTokenTimeout);
this.updateInterval && clearInterval(this.updateInterval);
// this.refreshTokenInterval && clearInterval(this.refreshTokenInterval);
callback();
} catch (e) {
callback();
Expand Down

0 comments on commit add612d

Please sign in to comment.