()
| 1353 | }); |
| 1354 | |
| 1355 | const finish = () => { |
| 1356 | if (finished) return; |
| 1357 | finished = true; |
| 1358 | process.off("SIGINT", shutdown); |
| 1359 | process.off("SIGTERM", shutdown); |
| 1360 | process.stdin.off("end", shutdown); |
| 1361 | process.stdin.off("close", shutdown); |
| 1362 | resolveExit(); |
| 1363 | }; |
| 1364 | |
| 1365 | const closeBoth = (): Promise<void> => { |
| 1366 | if (!closePromise) { |
no test coverage detected