Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
tsctx committed May 21, 2024
1 parent c05988c commit aacd26c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/web/websocket/sender.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,16 @@ class SendQueue {
frame: null
}

if (this.#tail === null) {
this.#tail = node
}

if (this.#head === null) {
this.#head = node
}

if (this.#tail === null) {
this.#tail = node
} else {
this.#tail.next = node
}

if (!this.#running) {
this.#run()
}
Expand Down

0 comments on commit aacd26c

Please sign in to comment.