mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-30 10:56:55 -05:00
fix by srv.close()
This commit is contained in:
parent
e0ff3c6504
commit
eecd66bb4c
1 changed files with 1 additions and 0 deletions
|
@ -91,6 +91,7 @@ function inject (bot, dcclient, config) {
|
||||||
function endListener (reason) {
|
function endListener (reason) {
|
||||||
client.end(`Bot disconnected with reason: ${util.inspect(reason)}`)
|
client.end(`Bot disconnected with reason: ${util.inspect(reason)}`)
|
||||||
bot.off('end', endListener)
|
bot.off('end', endListener)
|
||||||
|
srv.close()
|
||||||
srv.removeAllListeners()
|
srv.removeAllListeners()
|
||||||
}
|
}
|
||||||
bot.on('end', endListener)
|
bot.on('end', endListener)
|
||||||
|
|
Loading…
Reference in a new issue