Skip to content

Commit

Permalink
Clarify comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Slava committed Mar 19, 2020
1 parent 553a94a commit df1e4b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/network/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ module.exports = class Connection {
this.chunks.push(rawData)
this.bytesBuffered += Buffer.byteLength(rawData)

// Return early if not enough bytes to read the size of the message
// Return early if more bytes are needed to read the next messzge
if (this.bytesNeeded > this.bytesBuffered) {
return
}
Expand Down

0 comments on commit df1e4b3

Please sign in to comment.