fix:fix pong nil bug

Signed-off-by: Chen Kai <281165273grape@gmail.com>
This commit is contained in:
Chen Kai 2023-11-27 18:22:36 +08:00
parent 632c815ffa
commit aeae3676c6

View file

@ -306,6 +306,7 @@ func (p *PortalProtocol) ping(node *enode.Node) (uint64, error) {
if err != nil {
p.replaceNode(node)
return 0, err
}
return p.processPong(node, talkResp)
}