forked from cerc-io/plugeth
p2p/discv5: unset pingEcho on pong timeout (#21324)
This commit is contained in:
parent
af258efdb9
commit
2e08dad9e6
@ -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 //???
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user