Skip to content

Commit

Permalink
Fix getSendQueueCount (modified change org by achingbrain)
Browse files Browse the repository at this point in the history
  • Loading branch information
martenrichter committed Mar 5, 2024
1 parent 64d2f80 commit d5205d8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions transports/http3-quiche/lib/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,12 @@ export class Http3WebTransportSocket {
}

packetSendCB() {
// @ts-ignore
if (this.socketInt.getSendQueueCount() === 0 && this.blocked) {
if (
!this.closed &&
// @ts-ignore
this.socketInt.getSendQueueCount() === 0 &&
this.blocked
) {
this.cobj.onCanWrite()
}
}
Expand Down

0 comments on commit d5205d8

Please sign in to comment.