1
This commit is contained in:
parent
ffc9425266
commit
4705890d04
@ -334,7 +334,7 @@ void RTMPManager::start_all()
|
||||
void RTMPManager::stop_all()
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(streams_mutex);
|
||||
for (auto& kv : streams) kv.second->running.store(false);
|
||||
for (auto& kv : streams) kv.second->thread_running.store(false);
|
||||
for (auto& kv : streams)
|
||||
if (kv.second->thread.joinable()) kv.second->thread.join();
|
||||
streams.clear();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user