Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tommoor committed Jul 2, 2023
1 parent 0274441 commit ea527bf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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({
Expand Down

0 comments on commit ea527bf

Please sign in to comment.