Skip to content

Commit

Permalink
fix: Long startup time when OnEvent 'start' times out (repeatedly) (#…
Browse files Browse the repository at this point in the history
…25693)

Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
  • Loading branch information
Nerivec and Koenkk authored Jan 9, 2025
1 parent 23b709c commit f1f73bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/extension/onEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Extension from './extension';
export default class OnEvent extends Extension {
override async start(): Promise<void> {
for (const device of this.zigbee.devicesIterator(utils.deviceNotCoordinator)) {
await this.callOnEvent(device, 'start', {});
this.callOnEvent(device, 'start', {}).catch(utils.noop);
}

this.eventBus.onDeviceMessage(this, (data) => this.callOnEvent(data.device, 'message', this.convertData(data)));
Expand Down

0 comments on commit f1f73bd

Please sign in to comment.