Skip to content

Commit

Permalink
add cleartimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
ice987987 committed Mar 12, 2022
1 parent bb1c81f commit ff80428
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ Procedure:
<!-- ### __WORK IN PROGRESS__ -->

### v0.0.4 (12.03.2022)
* (ice987987) add cleartimeout

### v0.0.3 (11.03.2022)
* (ice987987) implement WebSocket connection to get values of the devices
* (ice987987) all subscribed states are capitalized
* (ice987987) new way to set leveltilt values
Expand Down
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Wiserbyfeller extends utils.Adapter {
this.rssi = null;

this.updateInterval = null;
//this.autoRestartTimeout = null;
this.autoRestartTimeout = null;
}

/**
Expand Down Expand Up @@ -949,7 +949,7 @@ class Wiserbyfeller extends utils.Adapter {
// Here you must clear all timeouts or intervals that may still be active
this.setState('info.connection', false, true);
this.updateInterval && clearInterval(this.updateInterval);
//this.autoRestartTimeout && clearTimeout(this.autoRestartTimeout);
this.autoRestartTimeout && clearTimeout(this.autoRestartTimeout);
callback();
this.log.info('cleaned everything up... (#1)');
} catch (e) {
Expand Down

0 comments on commit ff80428

Please sign in to comment.