QNimbus / node-red-contrib-openhab-v2

MIT License
9 stars 3 forks source link

When creating a flow with 3 or more -in nodes, MaxListenersExceededWarning #3

Closed QNimbus closed 6 years ago

QNimbus commented 6 years ago

On my flow with 3 openhab-v2-in nodes this warning shows up in the log.

MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 state listeners added.

Possible sollution - increase the amount of event listeners allowed for openhab-v2 nodes

Reference issue #4

QNimbus commented 6 years ago

This is a warning - not an error message. Can be solved by calling emitter.setMaxListeners(n) on openhab-v2-controller to allow for more listeners.