Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
splitice committed Feb 20, 2024
1 parent 3344b01 commit b4fb397
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ class Socket extends EventEmitter {
}
const newBuffer = buffer.slice (0, bytes);
this.emit ("message", newBuffer, source, buffer);
if(this.recvPaused) {
return null
}
buffer = this.buffer
return buffer
})
Expand Down

0 comments on commit b4fb397

Please sign in to comment.