Skip to content

Commit

Permalink
make sure process exits
Browse files Browse the repository at this point in the history
  • Loading branch information
phenylshima committed Nov 20, 2023
1 parent 8bad2d1 commit 70df001
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ client.once(Events.ClientReady, async (client) => {
});

function shutdown() {
void client.destroy().then(() => process.exit(0));
void client.destroy().finally(() => process.exit(0));
}

process.on("SIGINT", shutdown);
Expand Down

0 comments on commit 70df001

Please sign in to comment.