fix by srv.close()

This commit is contained in:
ChomeNS 2022-11-30 19:19:05 +07:00
parent e0ff3c6504
commit eecd66bb4c

View file

@ -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)