Lemons1337 / Discord-Spammer

Advanced Discord Spammer with multiple options and auto scraping proxies!
139 stars 100 forks source link

Eventemitter memory leak? #24

Open PreciousWarrior opened 3 years ago

PreciousWarrior commented 3 years ago

This issue is happening with the part of the code that handles the scraped addresses, checks them and appends them to the list:

(node:89780) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 pipe listeners added. Use emitter.setMaxListeners() to increase limit This exact warning is repeated like 10-15 times. Don't know if something is wrong or its just to be ignored?

Jeydin21 commented 3 years ago

It's because there are a lot of events running at the same time. To fix the error from popping up, just add this to your code:

require('events').EventEmitter.defaultMaxListeners = 100;
kvassxd commented 2 years ago

where do i add that to the code?