mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-10 08:51:38 +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)
|
t.log.Debug("Bad discv4 packet", "addr", from, "err", err)
|
||||||
} else if err != nil && unhandled != nil {
|
} else if err != nil && unhandled != nil {
|
||||||
p := ReadPacket{bytes.Clone(buf[:nbytes]), from}
|
p := ReadPacket{bytes.Clone(buf[:nbytes]), from}
|
||||||
|
select {
|
||||||
case unhandled <- p:
|
case unhandled <- p:
|
||||||
default:
|
default:
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue