Skip to content

Commit aacd26c

Browse files
committed
fixup
1 parent c05988c commit aacd26c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lib/web/websocket/sender.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,16 @@ class SendQueue {
6969
frame: null
7070
}
7171

72-
if (this.#tail === null) {
73-
this.#tail = node
74-
}
75-
7672
if (this.#head === null) {
7773
this.#head = node
7874
}
7975

76+
if (this.#tail === null) {
77+
this.#tail = node
78+
} else {
79+
this.#tail.next = node
80+
}
81+
8082
if (!this.#running) {
8183
this.#run()
8284
}

0 commit comments

Comments
 (0)