Skip to content

Commit

Permalink
Move close
Browse files Browse the repository at this point in the history
  • Loading branch information
holzmaster committed Mar 26, 2024
1 parent 9c55a5f commit 3780da7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@ process.on("uncaughtException", (err, origin) => {

process.once("SIGTERM", signal => {
log.error(`Received Sigterm: ${signal}`);
kysely.disconnectFromDb();
process.exit(1);
});
process.once("exit", code => {
client.destroy();
kysely.disconnectFromDb();
log.warn(`Process exited with code: ${code}`);
});

Expand Down

0 comments on commit 3780da7

Please sign in to comment.