Skip to content

Commit

Permalink
fix: avoid type error on SIGINT/SIGTERM (#1100)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone authored Nov 20, 2023
1 parent 03405c0 commit 7ee37ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bin/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ interface Args {
process.exit(exitCode);
};

process.on("SIGINT", handleShutdown);
process.on("SIGTERM", handleShutdown);
process.on("SIGINT", () => handleShutdown(0));
process.on("SIGTERM", () => handleShutdown(0));
})().catch((err) => {
console.error("Unable to start driver", err);
process.exit(1);
Expand Down

0 comments on commit 7ee37ce

Please sign in to comment.