Guest Ino Posted April 16, 2020 Report Posted April 16, 2020 Hi, if i'll call method getPersonas few times, and don't received response from steam - this events will stuck, with error. Quote "Possible EventEmitter memory leak detected. 11 user#steamid64 listeners added to [SteamUser]. Use emitter.setMaxListeners() to increase limit" . For example - you can reproduce this error when disable ethernet, and call this method 15 times. When i added condition it works without error ids.forEach((id) => { if( !this._events[`user#${id}`] ) { this.once('user#' + id, receive); } }); I suggest add this condition to all once events created, because steam may not response and events listeners may stuck Quote
Dr. McKay Posted April 16, 2020 Report Posted April 16, 2020 Created an issue for this: https://github.com/DoctorMcKay/node-steam-user/issues/297 Quote
Guest Ino Posted April 16, 2020 Report Posted April 16, 2020 4 hours ago, Dr. McKay said: Created an issue for this: https://github.com/DoctorMcKay/node-steam-user/issues/297 Thank you, can i help you for fastest close this issue ? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.