refactor(tui): centralize application exit
This commit is contained in:
@@ -213,12 +213,12 @@ export const TuiThreadCommand = cmd({
|
||||
} finally {
|
||||
await stop()
|
||||
}
|
||||
process.exit(0)
|
||||
} finally {
|
||||
try {
|
||||
unguard?.()
|
||||
} catch {}
|
||||
}
|
||||
process.exit(0)
|
||||
},
|
||||
})
|
||||
// scratch
|
||||
|
||||
Reference in New Issue
Block a user