Disabling UI when offline.

This commit is contained in:
Ben Vanik
2013-12-25 06:43:08 -08:00
parent 062610c596
commit 20249c2290
6 changed files with 60 additions and 2 deletions

View File

@@ -508,7 +508,9 @@ json_t* WSClient::HandleMessage(const char* command, json_t* request,
// Check debugger meta commands.
if (xestrcmpa(target_name, "debug") == 0) {
succeeded = true;
if (xestrcmpa(sub_command, "make_ready") == 0) {
if (xestrcmpa(sub_command, "ping") == 0) {
return json_true();
} else if (xestrcmpa(sub_command, "make_ready") == 0) {
MakeReady();
return json_true();
} else {