fix: add missing return values in add_writer/add_reader handlers (UB causing SIGILL)

This commit is contained in:
Johanness
2026-06-14 16:57:22 +03:00
parent a6ac2bf1a1
commit 8fa058f37f
+2
View File
@@ -120,6 +120,7 @@ spdlog::info("Created flow writer on port '{}' flow {} (created={})", port_id, f
flow_resources.push_back({port_id, writer, nullptr}); flow_resources.push_back({port_id, writer, nullptr});
node->set_writer_config(port_id, config_info); node->set_writer_config(port_id, config_info);
node->on_add_writer(port_id, writer); node->on_add_writer(port_id, writer);
return {{"ok", true}, {"created", created}};
}); });
control_server->register_command("add_reader", [&](const nlohmann::json& msg) -> nlohmann::json { control_server->register_command("add_reader", [&](const nlohmann::json& msg) -> nlohmann::json {
@@ -138,6 +139,7 @@ spdlog::info("Created flow reader on port '{}' flow {}", port_id, flow_id);
mxlFlowReaderGetConfigInfo(reader, &config); mxlFlowReaderGetConfigInfo(reader, &config);
node->set_reader_config(port_id, config); node->set_reader_config(port_id, config);
node->on_add_reader(port_id, reader); node->on_add_reader(port_id, reader);
return {{"ok", true}};
}); });
control_server->register_command("remove_writer", [&](const nlohmann::json& msg) -> nlohmann::json { control_server->register_command("remove_writer", [&](const nlohmann::json& msg) -> nlohmann::json {