Skip to content

Commit

Permalink
setTimeout replaced by this.delay (#128)
Browse files Browse the repository at this point in the history
* setTimeout replaced by this.delay
Fixes #126

* Updated README

---------

Co-authored-by: Michael Schröder <mschroeder@pmone.com>
  • Loading branch information
MiSchroe and Michael Schröder committed Oct 19, 2023
1 parent 7086a04 commit 076b259
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,10 @@ The values of the state provide multiple manipulation modes:
### __WORK IN PROGRESS__
-->
<!-- prettier-ignore -->
### __WORK IN PROGRESS__

- (Michael Schroeder) [#126](https://github.com/MiSchroe/ioBroker.klf200/issues/126) Fix Adapter-Checker warning.

### 1.1.2 (2023-10-19)

- (Michael Schroeder) Bumped version number
Expand Down
2 changes: 1 addition & 1 deletion build/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ class Klf200 extends utils.Adapter {
const result = convertErrorToString(e);
this.log.error(result);
// Wait a second before retry
await new Promise((resolve) => setTimeout(resolve, 1000));
await this.delay(1000);
}
}
}
Expand Down

0 comments on commit 076b259

Please sign in to comment.