good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 2e08dad9 authored by libotony's avatar libotony Committed by GitHub
Browse files

p2p/discv5: unset pingEcho on pong timeout (#21324)

parent af258efd
Branches
Tags
No related merge requests found
......@@ -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 //???
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment