mirror of
https://github.com/status-im/op-geth.git
synced 2025-01-14 16:55:53 +00: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:
parent
ba975dc093
commit
c60f6f6214
@ -220,6 +220,7 @@ loop:
|
|||||||
reason = discReasonForError(err)
|
reason = discReasonForError(err)
|
||||||
break loop
|
break loop
|
||||||
case err = <-p.disc:
|
case err = <-p.disc:
|
||||||
|
reason = discReasonForError(err)
|
||||||
break loop
|
break loop
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user