Skip to content

Commit

Permalink
fix: send chan name when creating stream
Browse files Browse the repository at this point in the history
  • Loading branch information
dryajov committed May 10, 2018
1 parent 3782e6b commit cd93515
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class Mplex extends EE {
createStream (name) {
if (typeof name === 'number') { name = name.toString() }
const chan = this._newStream(null, true, false, name, this._outChannels)
if (!this._lazy) { chan.openChan() }
if (!this._lazy) { chan.openChan(name) }
return chan
}

Expand Down

0 comments on commit cd93515

Please sign in to comment.