Adding process exits.

This commit is contained in:
mike12345567 2022-05-30 21:24:23 +01:00
parent fa30457f2b
commit b19882902b
2 changed files with 2 additions and 0 deletions

View File

@ -84,6 +84,7 @@ server.on("close", async () => {
await redis.shutdown()
await Thread.shutdown()
api.shutdown()
process.exit()
})
module.exports = server.listen(env.PORT || 0, async () => {

View File

@ -71,6 +71,7 @@ server.on("close", async () => {
console.log("Server Closed")
}
await redis.shutdown()
process.exit()
})
const shutdown = () => {