Skip to content

Commit

Permalink
add sigint handling
Browse files Browse the repository at this point in the history
  • Loading branch information
henrygd committed Jun 29, 2024
1 parent 7b4ba0b commit dca7491
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,3 +337,9 @@ function getStandingsHeaders(table: HTMLTableElement) {

return headings
}

process.on('SIGINT', async () => {
console.log('\nShutting down...')
await app.stop()
process.exit(0)
})

0 comments on commit dca7491

Please sign in to comment.