Adding process exits.
This commit is contained in:
parent
fa30457f2b
commit
b19882902b
|
@ -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 () => {
|
||||
|
|
|
@ -71,6 +71,7 @@ server.on("close", async () => {
|
|||
console.log("Server Closed")
|
||||
}
|
||||
await redis.shutdown()
|
||||
process.exit()
|
||||
})
|
||||
|
||||
const shutdown = () => {
|
||||
|
|
Loading…
Reference in New Issue