mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +00:00
p2p/peer: Don't discard reason sent by Disconnect()
Peer.run() was discarding the reason for disconnection sent to the disc channel by Disconnect()
This commit is contained in:
parent
86be91b3e2
commit
eac60ff6e4
1 changed files with 1 additions and 0 deletions
|
|
@ -220,6 +220,7 @@ loop:
|
|||
reason = discReasonForError(err)
|
||||
break loop
|
||||
case err = <-p.disc:
|
||||
reason = discReasonForError(err)
|
||||
break loop
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue