diff --git a/src/Services/IPSCPeer.js b/src/Services/IPSCPeer.js index d823b6b..e8a3766 100644 --- a/src/Services/IPSCPeer.js +++ b/src/Services/IPSCPeer.js @@ -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++;