diff --git a/src/bundle/Server.ts b/src/bundle/Server.ts index abd05e1..83c9c16 100644 --- a/src/bundle/Server.ts +++ b/src/bundle/Server.ts @@ -22,6 +22,7 @@ process.on("SIGTERM", async () => { console.log("Shutting down due to SIGTERM"); server.close(); + Sentry.close(); }); async function main() { diff --git a/src/util/util/Sentry.ts b/src/util/util/Sentry.ts index 3e7bb97..15a18fd 100644 --- a/src/util/util/Sentry.ts +++ b/src/util/util/Sentry.ts @@ -99,4 +99,8 @@ res.end(res.sentry + "\n"); }); }, + + close: () => { + SentryNode.close(); + }, };