Skip to content

Commit ea9b678

Browse files
committed
fix: send chan name when creating stream
1 parent af1d13f commit ea9b678

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class Mplex extends EE {
145145
createStream (name) {
146146
if (typeof name === 'number') { name = name.toString() }
147147
const chan = this._newStream(null, true, false, name, this._outChannels)
148-
if (!this._lazy) { chan.openChan() }
148+
if (!this._lazy) { chan.openChan(name) }
149149
return chan
150150
}
151151

0 commit comments

Comments
 (0)