1
0
Fork 0
mirror of synced 2024-10-04 03:54:37 +13:00

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 = () => {