rtp推流无人观看时,自动关闭端口:#410

This commit is contained in:
xiongziliang 2020-07-14 09:50:06 +08:00
parent 58fb88eac0
commit 0bb593f817

View File

@ -80,7 +80,9 @@ void RtpSelector::delProcess(const string &stream_id,const RtpProcess *ptr) {
if (it->second->getProcess().get() != ptr) {
return;
}
auto process = it->second->getProcess();
_map_rtp_process.erase(it);
process->onDetach();
}
void RtpSelector::onManager() {