From 3a09459c4c3c6d4edefa57a9b245402003ae191e Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Wed, 26 Nov 2014 22:08:54 +0100 Subject: p2p: make Disconnect not hang for peers created with NewPeer --- p2p/peer.go | 1 + 1 file changed, 1 insertion(+) (limited to 'p2p') diff --git a/p2p/peer.go b/p2p/peer.go index 238d3d9c9..893ba86d7 100644 --- a/p2p/peer.go +++ b/p2p/peer.go @@ -97,6 +97,7 @@ func NewPeer(id ClientIdentity, caps []Cap) *Peer { conn, _ := net.Pipe() peer := newPeer(conn, nil, nil) peer.setHandshakeInfo(id, nil, caps) + close(peer.closed) return peer } -- cgit