aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/handshake.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-04-14 06:38:47 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-04-14 06:38:47 +0800
commit2ea98d9b74ac2d66dce6eeb92c371c0237245d79 (patch)
tree6b3bc65d95754f7ec249aa6eaa61ac40db150176 /p2p/handshake.go
parentf6f9a0d515513463d6f9656d225939385a276608 (diff)
parent0217652d1b7e8f0c1c3002837d9f1277de27ef46 (diff)
downloaddexon-2ea98d9b74ac2d66dce6eeb92c371c0237245d79.tar
dexon-2ea98d9b74ac2d66dce6eeb92c371c0237245d79.tar.gz
dexon-2ea98d9b74ac2d66dce6eeb92c371c0237245d79.tar.bz2
dexon-2ea98d9b74ac2d66dce6eeb92c371c0237245d79.tar.lz
dexon-2ea98d9b74ac2d66dce6eeb92c371c0237245d79.tar.xz
dexon-2ea98d9b74ac2d66dce6eeb92c371c0237245d79.tar.zst
dexon-2ea98d9b74ac2d66dce6eeb92c371c0237245d79.zip
Merge pull request #704 from fjl/p2p-concurrency-fixups
p2p: more concurrency fixups
Diffstat (limited to 'p2p/handshake.go')
-rw-r--r--p2p/handshake.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/p2p/handshake.go b/p2p/handshake.go
index 43361364f..79395f23f 100644
--- a/p2p/handshake.go
+++ b/p2p/handshake.go
@@ -115,7 +115,7 @@ func setupOutboundConn(fd net.Conn, prv *ecdsa.PrivateKey, our *protoHandshake,
// returning the handshake read error. If the remote side
// disconnects us early with a valid reason, we should return it
// as the error so it can be tracked elsewhere.
- werr := make(chan error)
+ werr := make(chan error, 1)
go func() { werr <- Send(rw, handshakeMsg, our) }()
rhs, err := readProtocolHandshake(rw, secrets.RemoteID, our)
if err != nil {