Disconnect peers on status handshake timeout. (#2149)
This commit is contained in:
parent
0b33183341
commit
81c25ca4cd
|
@ -114,7 +114,8 @@ p2pProtocol BeaconSync(version = 1,
|
|||
ourStatus, theirStatus.get())
|
||||
else:
|
||||
debug "Status response not received in time",
|
||||
peer, error = theirStatus.error
|
||||
peer, error = theirStatus.error
|
||||
await peer.disconnect(FaultOrError)
|
||||
|
||||
proc status(peer: Peer,
|
||||
theirStatus: StatusMsg,
|
||||
|
|
Loading…
Reference in New Issue