summaryrefslogtreecommitdiff
path: root/src/rhctl/playout_server.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/rhctl/playout_server.go')
-rw-r--r--src/rhctl/playout_server.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rhctl/playout_server.go b/src/rhctl/playout_server.go
index 5666586..ea99268 100644
--- a/src/rhctl/playout_server.go
+++ b/src/rhctl/playout_server.go
@@ -79,11 +79,12 @@ func (srv *PlayoutServer) handleControl(data string) {
func (srv *PlayoutServer) handleHeartbeat(data string) {
rhdl.Printf("Server(%s): got heartbeat message: %q", srv.name, data)
srv.hbtimer.Reset(srv.hbtimeout)
- old := srv.status.Health
srv.hbcnt++
if srv.hbcnt < srv.hbthreshold {
return
}
+
+ old := srv.status.Health
srv.status.Health = ServerAlive
if old != srv.status.Health {
srv.Updates <- srv.status