Skip to content

Commit a8b5c89

Browse files
committed
think this is where things are crashing, but I'm not sure why yet. Comment it out to make sure
1 parent 80f8213 commit a8b5c89

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

nonfree/controller/PubSubWriter.cpp

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -261,26 +261,26 @@ pbmessages::MemberChange_Member* memberFromJson(const nlohmann::json& j)
261261
}
262262
}
263263
m->set_active_bridge(j.value("activeBridge", false));
264-
if (j["tags"].is_array()) {
265-
nlohmann::json tags = j["tags"];
266-
std::string tagsStr = OSUtils::jsonDump(tags, -1);
267-
m->set_tags(tagsStr);
268-
}
269-
else {
270-
nlohmann::json tags = nlohmann::json::array();
271-
std::string tagsStr = OSUtils::jsonDump(tags, -1);
272-
m->set_tags(tagsStr);
273-
}
274-
if (j["capabilities"].is_array()) {
275-
nlohmann::json caps = j["capabilities"];
276-
std::string capsStr = OSUtils::jsonDump(caps, -1);
277-
m->set_capabilities(capsStr);
278-
}
279-
else {
280-
nlohmann::json caps = nlohmann::json::array();
281-
std::string capsStr = OSUtils::jsonDump(caps, -1);
282-
m->set_capabilities(capsStr);
283-
}
264+
// if (j["tags"].is_array()) {
265+
// nlohmann::json tags = j["tags"];
266+
// std::string tagsStr = OSUtils::jsonDump(tags, -1);
267+
// m->set_tags(tagsStr);
268+
// }
269+
// else {
270+
// nlohmann::json tags = nlohmann::json::array();
271+
// std::string tagsStr = OSUtils::jsonDump(tags, -1);
272+
// m->set_tags(tagsStr);
273+
// }
274+
// if (j["capabilities"].is_array()) {
275+
// nlohmann::json caps = j["capabilities"];
276+
// std::string capsStr = OSUtils::jsonDump(caps, -1);
277+
// m->set_capabilities(capsStr);
278+
// }
279+
// else {
280+
// nlohmann::json caps = nlohmann::json::array();
281+
// std::string capsStr = OSUtils::jsonDump(caps, -1);
282+
// m->set_capabilities(capsStr);
283+
// }
284284
m->set_creation_time(j.value("creationTime", 0));
285285
m->set_no_auto_assign_ips(j.value("noAutoAssignIps", false));
286286
m->set_revision(j.value("revision", 0));

0 commit comments

Comments
 (0)