From 155e185c6e1eb2190de9d67f603c3253d2afa689 Mon Sep 17 00:00:00 2001 From: nai-degen Date: Sun, 26 May 2024 15:36:54 -0500 Subject: [PATCH] fixes shutdown handler fuckup --- src/server.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/server.ts b/src/server.ts index 1e21bdd..158b9e3 100644 --- a/src/server.ts +++ b/src/server.ts @@ -179,10 +179,7 @@ function cleanup() { process.exit(0); } -process.on("exit", () => cleanup()); -process.on("SIGHUP", () => process.exit(128 + 1)); -process.on("SIGINT", () => process.exit(128 + 2)); -process.on("SIGTERM", () => process.exit(128 + 15)); +process.on("SIGINT", cleanup); function registerUncaughtExceptionHandler() { process.on("uncaughtException", (err: any) => {