p2p: make Disconnect not hang for peers created with NewPeer

pull/192/head
Felix Lange 10 years ago
parent 9b85002b70
commit 3a09459c4c
  1. 1
      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
}

Loading…
Cancel
Save