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 authored and jacobheun committed Feb 7, 2019
1 parent aa1dcfa commit 9dff87a
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 9dff87a

Please sign in to comment.