summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-09-22 22:32:28 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-09-22 22:49:28 (GMT)
commita837fefdd2e86bcc54673f2ca571ec3bb7ea1eca (patch)
tree5e7ce1dbcfdfd73d6c72cebef2f9b3910ad9cd76
parent265aba028ae220c5a0be049c19024f5b31b78dfc (diff)
serial traps in rivendell can't contain a space
-rw-r--r--src/rhctl/playout_server.go6
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