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:
Matthias Radestock committed 2015-06-29 12:38:21 +01:00
1 parent d6fedc1e6e
commit ab943d938a
2 files changed
+14 -14

No files matched your search

+1 -1
View File
@@ -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
}