Skip to content

Commit ace2665

Browse files
author
Junhui Tong
committed
pump version
1 parent 3d0f4f8 commit ace2665

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

Diff for: jsr.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"name": "@timepp/ev",
3-
"version": "0.1.3",
3+
"version": "0.1.4",
44
"exports": "./launch.ts"
55
}

Diff for: launch.ts

+9-2
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,16 @@ async function main() {
5050
await apiImpl.cleanUp()
5151
}
5252

53+
let sigIntCount = 0
5354
Deno.addSignalListener('SIGINT', () => {
54-
console.log('SIGINT received, shutting down backend')
55-
backend.shutdown()
55+
sigIntCount++
56+
if (sigIntCount > 1) {
57+
console.log('SIGINT received again, force exit')
58+
Deno.exit(1)
59+
} else {
60+
console.log('SIGINT received, shutting down backend')
61+
backend.shutdown()
62+
}
5663
})
5764

5865
await backend.finished

0 commit comments

Comments
 (0)