mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-08 07:58:40 +00:00
p2p/discover: fix editing error
This commit is contained in:
parent
59787a1d80
commit
cae076fef5
1 changed files with 1 additions and 0 deletions
|
|
@ -556,6 +556,7 @@ func (t *UDPv4) readLoop(unhandled chan<- ReadPacket) {
|
|||
t.log.Debug("Bad discv4 packet", "addr", from, "err", err)
|
||||
} else if err != nil && unhandled != nil {
|
||||
p := ReadPacket{bytes.Clone(buf[:nbytes]), from}
|
||||
select {
|
||||
case unhandled <- p:
|
||||
default:
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue