diff --git a/p2p/discv5/net.go b/p2p/discv5/net.go index c912cba7d1..53e00a3881 100644 --- a/p2p/discv5/net.go +++ b/p2p/discv5/net.go @@ -1037,6 +1037,9 @@ func (net *Network) handle(n *Node, ev nodeEvent, pkt *ingressPacket) error { net.db.ensureExpirer() } } + if ev == pongTimeout { + n.pingEcho = nil // clean up if pongtimeout + } if n.state == nil { n.state = unknown //??? }