Cleanup
This commit is contained in:
@@ -323,7 +323,9 @@ func (s *peerSupervisor) client() stateFunc {
|
|||||||
|
|
||||||
case pingTimerMsg:
|
case pingTimerMsg:
|
||||||
if time.Since(lastSeen) > timeoutInterval {
|
if time.Since(lastSeen) > timeoutInterval {
|
||||||
logf("Connection timeout")
|
if s.staged.Up {
|
||||||
|
logf("Connection timeout")
|
||||||
|
}
|
||||||
return s.peerUpdate(s.peer)
|
return s.peerUpdate(s.peer)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user