actually change the connId of a stream upon new assignment in send

This commit is contained in:
Andy Wang 2020-04-05 00:52:06 +01:00
parent e9afae72f0
commit dc262f7ca5
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ func (sb *switchboard) send(data []byte, connId *uint32) (n int, err error) {
if err != nil {
return 0, errBrokenSwitchboard
}
connId = &newConnId
*connId = newConnId
return writeAndRegUsage(conn, data)
}
default: