mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-23 03:10:04 +08:00
rtp推流无人观看时,自动关闭端口:#410
This commit is contained in:
parent
58fb88eac0
commit
0bb593f817
@ -80,7 +80,9 @@ void RtpSelector::delProcess(const string &stream_id,const RtpProcess *ptr) {
|
|||||||
if (it->second->getProcess().get() != ptr) {
|
if (it->second->getProcess().get() != ptr) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
auto process = it->second->getProcess();
|
||||||
_map_rtp_process.erase(it);
|
_map_rtp_process.erase(it);
|
||||||
|
process->onDetach();
|
||||||
}
|
}
|
||||||
|
|
||||||
void RtpSelector::onManager() {
|
void RtpSelector::onManager() {
|
||||||
|
Loading…
Reference in New Issue
Block a user