Skip to content

Commit

Permalink
pump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Junhui Tong committed Jul 15, 2024
1 parent 3d0f4f8 commit ace2665
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@timepp/ev",
"version": "0.1.3",
"version": "0.1.4",
"exports": "./launch.ts"
}
11 changes: 9 additions & 2 deletions launch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,16 @@ async function main() {
await apiImpl.cleanUp()
}

let sigIntCount = 0
Deno.addSignalListener('SIGINT', () => {
console.log('SIGINT received, shutting down backend')
backend.shutdown()
sigIntCount++
if (sigIntCount > 1) {
console.log('SIGINT received again, force exit')
Deno.exit(1)
} else {
console.log('SIGINT received, shutting down backend')
backend.shutdown()
}
})

await backend.finished
Expand Down

0 comments on commit ace2665

Please sign in to comment.