kopiro / homebridge-playstation

Playstation integration for Homebridge / HOOBS.
Apache License 2.0
97 stars 9 forks source link

MaxListenersExceededWarning #23

Closed fate8383 closed 1 year ago

fate8383 commented 2 years ago

Latest version causing warnings as below. added to node settings "--trace-warnings" to get the output as below.

(node:3218) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 message listeners added to [Socket]. Use emitter.setMaxListeners() to increase limit at _addListener (node:events:595:17) at Socket.addListener (node:events:617:10) at UdpDiscoveryNetworkFactory.createRawMessages (/usr/lib/node_modules/homebridge-playstation/node_modules/playactor/dist/discovery/udp.js:132:16) at UdpDiscoveryNetworkFactory.createMessages (/usr/lib/node_modules/homebridge-playstation/node_modules/playactor/dist/discovery/udp.js:113:21) at UdpDiscoveryNetworkFactory.createDevices (/usr/lib/node_modules/homebridge-playstation/node_modules/playactor/dist/discovery/udp.js:148:21) at /usr/lib/node_modules/homebridge-playstation/node_modules/playactor/dist/discovery/standard.js:16:99 at Array.map () at Object.createDevices (/usr/lib/node_modules/homebridge-playstation/node_modules/playactor/dist/discovery/standard.js:16:76) at Discovery.discover (/usr/lib/node_modules/homebridge-playstation/node_modules/playactor/dist/discovery.js:22:45) at PendingDevice. (/usr/lib/node_modules/homebridge-playstation/node_modules/playactor/dist/device/pending.js:61:55) at Generator.next () at /usr/lib/node_modules/homebridge-playstation/node_modules/playactor/dist/device/pending.js:8:71 at new Promise () at __awaiter (/usr/lib/node_modules/homebridge-playstation/node_modules/playactor/dist/device/pending.js:4:12) at PendingDevice.resolve (/usr/lib/node_modules/homebridge-playstation/node_modules/playactor/dist/device/pending.js:55:16) at PendingDevice. (/usr/lib/node_modules/homebridge-playstation/node_modules/playactor/dist/device/pending.js:37:41)

ZhibinLiIntel commented 2 years ago

I have the same issue.

kopiro commented 1 year ago

This is not an error, it's just a warning.