Skip to content

Commit 9b3a266

Browse files
committed
Add missing writableclosed = true
1 parent 00ba496 commit 9b3a266

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main/lib/stream.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ export class HttpWTStream {
172172
if (this.writableclosed) {
173173
return Promise.resolve()
174174
}
175+
this.writableclosed = true
175176
this.objint.streamFinal()
176177
this.parentobj.removeSendStream(
177178
this.writable,
@@ -190,6 +191,7 @@ export class HttpWTStream {
190191
resolve()
191192
})
192193
}
194+
this.writableclosed = true
193195
let code = 0
194196
if (reason && reason.code) {
195197
if (reason.code < 0) code = 0

0 commit comments

Comments
 (0)