refactor: don't return encoder from handshake()
We did this for symmetry/completeness, but the encoder is actually "consumed" by handshake() in the creation of the tcp senders, hence it is in fact dangerous to return it.
This commit is contained in:
1 parent
d6fedc1e6e
commit
ab943d938a
2 files changed
+14
-14
No files matched your search
@@ -279,7 +279,7 @@ func (conn *LocalConnection) run(actionChan <-chan ConnectionAction, finished ch
|
||||
|
||||
conn.TCPConn.SetLinger(0)
|
||||
|
||||
_, dec, err := conn.handshake(acceptNewPeer)
|
||||
dec, err := conn.handshake(acceptNewPeer)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user