move store muxer

This commit is contained in:
Ludovic Chenut 2022-12-23 13:33:53 +01:00
parent 676786b00e
commit 6e2c173848
No known key found for this signature in database
GPG Key ID: D9A59B1907F1D50C

View File

@ -73,9 +73,6 @@ proc mux*(
self.connManager.storeConn(conn)
# store it in muxed connections if we have a peer for it
self.connManager.storeMuxer(muxer, muxer.handle()) # store muxer and start read loop
try:
await self.identify(muxer)
except CatchableError as exc:
@ -84,6 +81,9 @@ proc mux*(
# loop
debug "Could not identify connection", conn, msg = exc.msg
# store it in muxed connections if we have a peer for it
self.connManager.storeMuxer(muxer, muxer.handle()) # store muxer and start read loop
return muxer
method upgradeOutgoing*(