()
| 258 | let isShuttingDown = false |
| 259 | |
| 260 | async function shutdownRuntimeHost() { |
| 261 | if (isShuttingDown) return |
| 262 | isShuttingDown = true |
| 263 | try { |
| 264 | await disposeAllRuntimeHosts() |
| 265 | } finally { |
| 266 | process.exit(0) |
| 267 | } |
| 268 | } |
| 269 | |
| 270 | process.once('disconnect', () => { |
| 271 | void shutdownRuntimeHost() |
no test coverage detected