This commit is contained in:
cxh 2025-10-14 17:30:47 +08:00
parent 8c6c0802aa
commit 2c2441f2e1

View File

@ -59,20 +59,6 @@ int main()
std::thread rtsp_thread; std::thread rtsp_thread;
std::thread mqtt_thread; std::thread mqtt_thread;
// 启动 RTSP 线程(如果启用)
if (ENABLE_RTSP_THREAD)
{
rtsp_thread = std::thread([&]()
{
RTSPManager::start(g_app_config.cameras);
rtsp_thread_exited.store(true, std::memory_order_relaxed); });
LOG_INFO("[MAIN] RTSP thread started");
}
else
{
LOG_INFO("[MAIN] RTSP thread disabled by build-time toggle");
}
// 启动 MQTT 线程(如果启用) // 启动 MQTT 线程(如果启用)
if (ENABLE_MQTT_THREAD) if (ENABLE_MQTT_THREAD)
{ {