mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 10:44:55 -05:00
(node:126946) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 uncaughtException listeners added to [process]. Use emitter.setMaxListeners() to increase limit
This commit is contained in:
parent
6df23b4a6e
commit
eb4e07b8cc
1 changed files with 1 additions and 1 deletions
2
bot.js
2
bot.js
|
@ -184,7 +184,7 @@ async function createBot(server, config, getBots, dcclient) {
|
|||
|
||||
bot._client.on('error', function() {});
|
||||
|
||||
process.on('uncaughtException', (error) => {
|
||||
process.once('uncaughtException', (error) => {
|
||||
console.error('uncaught ' + util.inspect(error));
|
||||
// channel.send('uncaught ```\n' + util.inspect(error) + '\n```');
|
||||
// bot.emit('end', 'uncaughtException', 'process: uncaughtException');
|
||||
|
|
Loading…
Reference in a new issue