jira SDK-5325: Server returns 404 when client requests to hide Netflix when it is already in hidden state

This commit is contained in:
jcli
2017-03-05 11:26:42 -08:00
parent 692a9c2ce8
commit f686fd9a19

View File

@@ -304,7 +304,7 @@ static void handle_app_hide(struct mg_connection *conn,
&canStop, app->callback_data); &canStop, app->callback_data);
} }
if (!app || app->state != kDIALStatusRunning) { if (!app || (app->state != kDIALStatusRunning && app->state != kDIALStatusHide)) {
mg_send_http_error(conn, 404, "Not Found", "Not Found"); mg_send_http_error(conn, 404, "Not Found", "Not Found");
} else { } else {
// not implemented in reference // not implemented in reference