From ea527bf147fe193d8f42ff5eac75312fba69a2f7 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sat, 1 Jul 2023 22:57:59 -0400 Subject: [PATCH] fix --- server/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/index.ts b/server/index.ts index 9e43edaf1..de33f7632 100644 --- a/server/index.ts +++ b/server/index.ts @@ -70,8 +70,8 @@ async function start(id: number, disconnect: () => void) { const app = new Koa(); const server = stoppable( useHTTPS - ? https.createServer(ssl, void app.callback()) - : http.createServer(void app.callback()), + ? https.createServer(ssl, app.callback()) + : http.createServer(app.callback()), ShutdownHelper.connectionGraceTimeout ); const router = new Router(); @@ -163,8 +163,8 @@ async function start(id: number, disconnect: () => void) { ShutdownHelper.add("metrics", ShutdownOrder.last, () => Metrics.flush()); // Handle shutdown signals - process.once("SIGTERM", () => void ShutdownHelper.execute()); - process.once("SIGINT", () => void ShutdownHelper.execute()); + process.once("SIGTERM", () => ShutdownHelper.execute()); + process.once("SIGINT", () => ShutdownHelper.execute()); } void throng({