diff options
-rw-r--r-- | src/rhctl/playout_server.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rhctl/playout_server.go b/src/rhctl/playout_server.go index 9589065..a8cb399 100644 --- a/src/rhctl/playout_server.go +++ b/src/rhctl/playout_server.go @@ -32,6 +32,8 @@ type ServerHealth bool const ( ServerDead ServerHealth = false ServerAlive ServerHealth = true + + ServerChannelReq = "channel?" ) func (s ServerHealth) String() string { @@ -78,7 +80,7 @@ func (srv *PlayoutServer) handleHeartbeat() { srv.StateChanges <- srv.state rhl.Printf("Server(%s): is back from the dead!", srv.name) if srv.state.Channel == "" { - srv.device.tx <- "channel ?" + srv.device.tx <- ServerChannelReq } } } @@ -139,7 +141,7 @@ func (srv *PlayoutServer) Run() { if srv.state.Health == ServerDead { srv.StateChanges <- srv.state } else { - srv.device.tx <- "channel ?" + srv.device.tx <- ServerChannelReq } case update := <-srv.SwitchUpdates: srv.device.tx <- update.Data |