mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 19:40:37 +00:00
minor fix (#5810)
This commit is contained in:
parent
6840afb45e
commit
1110a5caab
@ -133,7 +133,9 @@ func (s *Service) AddConnectionHandler(reqFunc func(ctx context.Context, id peer
|
||||
disconnectFromPeer()
|
||||
return
|
||||
}
|
||||
if !updated.After(currentTime) {
|
||||
// exit if we don't receive any current status messages from
|
||||
// peer.
|
||||
if updated.IsZero() || !updated.After(currentTime) {
|
||||
disconnectFromPeer()
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user