mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-14 16:03:45 +00:00
fix:fix pong nil bug
Signed-off-by: Chen Kai <281165273grape@gmail.com>
This commit is contained in:
parent
632c815ffa
commit
aeae3676c6
1 changed files with 1 additions and 0 deletions
|
|
@ -306,6 +306,7 @@ func (p *PortalProtocol) ping(node *enode.Node) (uint64, error) {
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
p.replaceNode(node)
|
p.replaceNode(node)
|
||||||
|
return 0, err
|
||||||
}
|
}
|
||||||
return p.processPong(node, talkResp)
|
return p.processPong(node, talkResp)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue