Add some pointer safety checks to underlying data service call [skip ci]

This commit is contained in:
Akkadius committed 2019-11-03 14:34:07 -06:00
1 parent dff23793c6
commit ed7ce38fe0
4 files changed
+19

No files matched your search

+4
View File
@@ -32,6 +32,10 @@ void callGetZoneList(Json::Value &response)
for (auto &zone : zoneserver_list.getZoneServerList()) {
Json::Value row;
if (!zone->IsConnected()) {
continue;
}
row["booting_up"] = zone->IsBootingUp();
row["client_address"] = zone->GetCAddress();
row["client_local_address"] = zone->GetCLocalAddress();