Skip to content

Commit

Permalink
IPSCPeer: streamId overflow fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rick51231 committed Mar 1, 2023
1 parent 8e0b9cd commit a86a5a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/IPSCPeer.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ class IPSCPeer extends EventEmitter {
this.sendDataBuffer.push(packet);

if(isLast) {
if(this.streamId>255)
if(this.streamId>=255)
this.streamId = 0;
else
this.streamId++;
Expand Down

0 comments on commit a86a5a0

Please sign in to comment.