summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rhctl/playout_server.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rhctl/playout_server.go b/src/rhctl/playout_server.go
index 30577b8..fbcfeff 100644
--- a/src/rhctl/playout_server.go
+++ b/src/rhctl/playout_server.go
@@ -78,6 +78,14 @@ func (srv *PlayoutServer) handleControl(data string) {
srv.StateChanges <- srv.state
return
}
+ if strings.HasPrefix(data, "handover ") {
+ if len(data) <= 9 {
+ rhl.Printf("Server(%s) sent empty handover", srv.name)
+ return
+ }
+ // TODO: send command to swichctrl: &Command{Type: CmdServer, Args: data[9:], Response: nil}
+ return
+ }
rhl.Printf("Server(%s): ignoring unknown control message: %q", srv.name, data)
}