mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-27 09:35:35 -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) {
|
||||
client.end(`Bot disconnected with reason: ${util.inspect(reason)}`)
|
||||
bot.off('end', endListener)
|
||||
srv.close()
|
||||
srv.removeAllListeners()
|
||||
}
|
||||
bot.on('end', endListener)
|
||||
|
|
Loading…
Reference in a new issue