Skip to content

Commit

Permalink
fix: start channel from 0
Browse files Browse the repository at this point in the history
  • Loading branch information
dryajov authored and jacobheun committed Feb 7, 2019
1 parent f9a465b commit afc0040
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class Channel extends EE {
}

push (data) {
this._log('push', data)
this._log('push')
this._msgs.push(data)
}

Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Mplex extends EE {
this._lazy = opts.lazy

this._initiator = Boolean(opts.initiator)
this._chanId = this._initiator ? 0 : 1
this._chanId = 0
this._inChannels = new Array(this._maxChannels / 2)
this._outChannels = new Array(this._maxChannels / 2)
this._endedRemote = false // remote stream ended
Expand Down

0 comments on commit afc0040

Please sign in to comment.