mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00
[DEV-93] Backported 'peer: ensure the version negotiation goroutine will always exit'. (#50)
Original PR: https://github.com/btcsuite/btcd/pull/1228/files
This commit is contained in:
parent
ce35aabb70
commit
9438bd0d2e
@ -2010,7 +2010,7 @@ func (p *Peer) Disconnect() {
|
||||
func (p *Peer) start() error {
|
||||
log.Tracef("Starting peer %s", p)
|
||||
|
||||
negotiateErr := make(chan error)
|
||||
negotiateErr := make(chan error, 1)
|
||||
go func() {
|
||||
if p.inbound {
|
||||
negotiateErr <- p.negotiateInboundProtocol()
|
||||
|
Loading…
x
Reference in New Issue
Block a user