CellSplitter Posted May 25, 2019 Report Posted May 25, 2019 Hey, i have a Problem in a function from my BOT I become a warning: (node:21607) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 friendRelationship listeners added. Use emitter.setMaxListeners() to increase limit I need to use emitter.setMaxListeners(), but i dont know how to use it Quote
Dr. McKay Posted May 25, 2019 Report Posted May 25, 2019 You shouldn't increase the limit. You should figure out why you're attaching so many listeners to friendRelationship. Quote
CellSplitter Posted May 26, 2019 Author Report Posted May 26, 2019 (edited) Its my Code ...i know why, it add random people as friend, and if friend add to group Edited May 26, 2019 by CellSplitter 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.