Skip to content

Commit d5205d8

Browse files
committed
Fix getSendQueueCount (modified change org by achingbrain)
1 parent 64d2f80 commit d5205d8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

transports/http3-quiche/lib/socket.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,12 @@ export class Http3WebTransportSocket {
110110
}
111111

112112
packetSendCB() {
113-
// @ts-ignore
114-
if (this.socketInt.getSendQueueCount() === 0 && this.blocked) {
113+
if (
114+
!this.closed &&
115+
// @ts-ignore
116+
this.socketInt.getSendQueueCount() === 0 &&
117+
this.blocked
118+
) {
115119
this.cobj.onCanWrite()
116120
}
117121
}

0 commit comments

Comments
 (0)