This commit is contained in:
cxh 2025-10-15 10:47:20 +08:00
parent 09ce42aeb6
commit acfcbda026

View File

@ -170,6 +170,8 @@ void RTMPManager::stream_loop(Camera cam, StreamType type)
break; break;
} }
if (!ctx->running.load())
break;
LOG_WARN("[RTMP] Reconnecting " + key + " in 1s..."); LOG_WARN("[RTMP] Reconnecting " + key + " in 1s...");
std::this_thread::sleep_for(std::chrono::seconds(1)); std::this_thread::sleep_for(std::chrono::seconds(1));
} }