mirror of
https://github.com/arnaucube/go-ethereum.git
synced 2026-02-28 05:56:45 +01:00
p2p: don't discard reason set by Disconnect (#16559)
Peer.run was discarding the reason for disconnection sent to the disc channel by Disconnect.
This commit is contained in:
committed by
Felix Lange
parent
ba975dc093
commit
c60f6f6214
@@ -220,6 +220,7 @@ loop:
|
||||
reason = discReasonForError(err)
|
||||
break loop
|
||||
case err = <-p.disc:
|
||||
reason = discReasonForError(err)
|
||||
break loop
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user