Commit 1f7fac7
committed
fix(transcripts): await read stream close after destroy
stream.destroy() starts async teardown but returns immediately, so the
fd could still be open when the method rethrows. Wait for the 'close'
event when the stream is not already closed to ensure the descriptor
is released before the caller handles the rejection.1 parent f6e7dd1 commit 1f7fac7
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
218 | 223 | | |
219 | 224 | | |
220 | 225 | | |
| |||
0 commit comments