Jump to content


Photo
Question

set emitter.setMaxListeners()

node.js node-steam-user

  • Please log in to reply
2 replies to this topic

#1 CellSplitter

CellSplitter

    Member

  • Member
  • PipPip
  • 20 posts

Posted 25 May 2019 - 05:56 AM

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

#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 2,137 posts

Posted 25 May 2019 - 04:12 PM

You shouldn't increase the limit. You should figure out why you're attaching so many listeners to friendRelationship.



#3 CellSplitter

CellSplitter

    Member

  • Member
  • PipPip
  • 20 posts

Posted 26 May 2019 - 01:34 PM

Its my Code ...i know why, it add random people as friend, and if friend add to group

Edited by CellSplitter, 26 May 2019 - 04:26 PM.






Also tagged with one or more of these keywords: Question, node.js, node-steam-user

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users