Skip to content
This repository was archived by the owner on Aug 23, 2019. It is now read-only.

Commit fef2d11

Browse files
alanshawJacob Heun
authored and
Jacob Heun
committed
fix: return on call to nextMuxer
When the call to multistream.Dialer.select is unsuccessful, call nextMuxer to try select the next one in the list but do not continue executing callback afterwards. License: MIT Signed-off-by: Alan Shaw <[email protected]>
1 parent 4b60484 commit fef2d11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dial.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ class Dialer {
208208
return callback(new Error('could not upgrade to stream muxing'))
209209
}
210210

211-
nextMuxer(muxers.shift())
211+
return nextMuxer(muxers.shift())
212212
}
213213

214214
const muxedConn = this.switch.muxers[key].dialer(conn)

0 commit comments

Comments
 (0)