From a837fefdd2e86bcc54673f2ca571ec3bb7ea1eca Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Fri, 23 Sep 2016 00:32:28 +0200 Subject: serial traps in rivendell can't contain a space 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 -- cgit v0.10.2