diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-09-24 18:56:34 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-09-24 18:56:34 (GMT) |
commit | 0ed3e9fbc1ea1b69b66f0f494bd06dd8c272ebdf (patch) | |
tree | a425ab58ef998934611f7363a1e068a6375e6a3d /src/rhctl | |
parent | 2de6beb14b764a850933040c8970dedfd78158c8 (diff) |
fixed output of websocket state command
Diffstat (limited to 'src/rhctl')
-rw-r--r-- | src/rhctl/main.go | 1 | ||||
-rw-r--r-- | src/rhctl/web_socket.go | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/rhctl/main.go b/src/rhctl/main.go index 3ba8c45..809dd62 100644 --- a/src/rhctl/main.go +++ b/src/rhctl/main.go @@ -95,6 +95,7 @@ func main() { } servers = append(servers, server) } + // TODO: re-enable this! // if len(servers) <= 0 { // rhl.Printf("Error: there is no playout server configured...") // return diff --git a/src/rhctl/web_socket.go b/src/rhctl/web_socket.go index 8d68dc3..5f90100 100644 --- a/src/rhctl/web_socket.go +++ b/src/rhctl/web_socket.go @@ -65,6 +65,7 @@ func sendWebSocketStateResponse(ws *websocket.Conn, state State) { rd.ResponseCode = http.StatusOK rd.Type = "state" rd.ErrorString = "OK" + rd.State = state sendWebSocketResponse(ws, rd) } |