Skip to content
Snippets Groups Projects
Commit accf072c authored by Jonah Husson's avatar Jonah Husson
Browse files

Merge branch 'Knack/TrackerFix' into 'release'

tracker shouldn't exit when it goes unhealthy

See merge request !663
parents a2a19fd4 5af46ea3
No related branches found
No related tags found
1 merge request!23Release
...@@ -191,8 +191,10 @@ func (t *Tracker) start(stop *stoppable.Single) { ...@@ -191,8 +191,10 @@ func (t *Tracker) start(stop *stoppable.Single) {
t.setHealth(true) t.setHealth(true)
} }
case <-timer.C: case <-timer.C:
if !t.isHealthy {
jww.WARN.Printf("Network health tracker timed out, network is no longer healthy...")
}
t.setHealth(false) t.setHealth(false)
return
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment