| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f98d441 commit 8fe62f8
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -330,7 +330,7 @@ function tryClose(fd) { | |||
| 330 | 330 | function onStreamTrailers() { | |
| 331 | 331 | const stream = this[kOwner]; | |
| 332 | 332 | stream[kState].trailersReady = true; | |
| 333 | - if (stream.destroyed) | ||
| 333 | + if (stream.destroyed || stream.closed) | ||
| 334 | 334 | return; | |
| 335 | 335 | if (!stream.emit('wantTrailers')) { | |
| 336 | 336 | // There are no listeners, send empty trailing HEADERS frame and close. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments