From 51321affcf726a5d72b341a281249738b04de664 Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Thu, 25 Nov 2021 21:49:50 +0100 Subject: [PATCH] Increase max event listeners. https://github.com/Koenkk/zigbee2mqtt/issues/9822 --- lib/eventBus.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/eventBus.ts b/lib/eventBus.ts index afa965b86..6abf55814 100644 --- a/lib/eventBus.ts +++ b/lib/eventBus.ts @@ -9,7 +9,7 @@ export default class EventBus { private emitter = new events.EventEmitter(); constructor(onError: (error: Error) => void) { - this.emitter.setMaxListeners(100); + this.emitter.setMaxListeners(150); this.emitter.on('error', onError); }