浏览代码

think this is where things are crashing, but I'm not sure why yet. Comment it out to make sure

Grant Limberg 3 周之前
父节点
当前提交
a8b5c89efa
共有 1 个文件被更改,包括 20 次插入20 次删除
  1. 20 20
      nonfree/controller/PubSubWriter.cpp

+ 20 - 20
nonfree/controller/PubSubWriter.cpp

@@ -261,26 +261,26 @@ pbmessages::MemberChange_Member* memberFromJson(const nlohmann::json& j)
 			}
 		}
 		m->set_active_bridge(j.value("activeBridge", false));
-		if (j["tags"].is_array()) {
-			nlohmann::json tags = j["tags"];
-			std::string tagsStr = OSUtils::jsonDump(tags, -1);
-			m->set_tags(tagsStr);
-		}
-		else {
-			nlohmann::json tags = nlohmann::json::array();
-			std::string tagsStr = OSUtils::jsonDump(tags, -1);
-			m->set_tags(tagsStr);
-		}
-		if (j["capabilities"].is_array()) {
-			nlohmann::json caps = j["capabilities"];
-			std::string capsStr = OSUtils::jsonDump(caps, -1);
-			m->set_capabilities(capsStr);
-		}
-		else {
-			nlohmann::json caps = nlohmann::json::array();
-			std::string capsStr = OSUtils::jsonDump(caps, -1);
-			m->set_capabilities(capsStr);
-		}
+		// if (j["tags"].is_array()) {
+		// 	nlohmann::json tags = j["tags"];
+		// 	std::string tagsStr = OSUtils::jsonDump(tags, -1);
+		// 	m->set_tags(tagsStr);
+		// }
+		// else {
+		// 	nlohmann::json tags = nlohmann::json::array();
+		// 	std::string tagsStr = OSUtils::jsonDump(tags, -1);
+		// 	m->set_tags(tagsStr);
+		// }
+		// if (j["capabilities"].is_array()) {
+		// 	nlohmann::json caps = j["capabilities"];
+		// 	std::string capsStr = OSUtils::jsonDump(caps, -1);
+		// 	m->set_capabilities(capsStr);
+		// }
+		// else {
+		// 	nlohmann::json caps = nlohmann::json::array();
+		// 	std::string capsStr = OSUtils::jsonDump(caps, -1);
+		// 	m->set_capabilities(capsStr);
+		// }
 		m->set_creation_time(j.value("creationTime", 0));
 		m->set_no_auto_assign_ips(j.value("noAutoAssignIps", false));
 		m->set_revision(j.value("revision", 0));