Skip to content

Commit

Permalink
fix: do not attempt to poll values from nodes that are considered dead
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone committed Oct 30, 2023
1 parent e884f93 commit 35333f8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/zwave-js/src/lib/node/Node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2820,10 +2820,13 @@ protocol version: ${this.protocolVersion}`;
}

/**
* Refreshes the values of all CCs that should be reporting regularly, but haven't been
* Refreshes the values of all CCs that should be reporting regularly, but haven't been updated recently
* @internal
*/
public async autoRefreshValues(): Promise<void> {
// Do not attempt to communicate with dead nodes automatically
if (this.status === NodeStatus.Dead) return;

for (const endpoint of this.getAllEndpoints()) {
for (
const cc of endpoint
Expand Down

0 comments on commit 35333f8

Please sign in to comment.