mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-23 03:10:04 +08:00
fix rtp server process removed server not clear
This commit is contained in:
parent
228fa17327
commit
87353534af
@ -95,6 +95,9 @@ public:
|
|||||||
if (!process && strong_self->_on_detach) {
|
if (!process && strong_self->_on_detach) {
|
||||||
strong_self->_on_detach();
|
strong_self->_on_detach();
|
||||||
}
|
}
|
||||||
|
if(process && strong_self->_on_detach){// tcp 链接防止断开不删除rtpServer
|
||||||
|
process->setOnDetach(std::move(strong_self->_on_detach));
|
||||||
|
}
|
||||||
if (!process) { // process 未创建,触发rtp server 超时事件
|
if (!process) { // process 未创建,触发rtp server 超时事件
|
||||||
NoticeCenter::Instance().emitEvent(Broadcast::KBroadcastRtpServerTimeout,strong_self->_local_port,strong_self->_stream_id,(int)strong_self->_tcp_mode,strong_self->_re_use_port,strong_self->_ssrc);
|
NoticeCenter::Instance().emitEvent(Broadcast::KBroadcastRtpServerTimeout,strong_self->_local_port,strong_self->_stream_id,(int)strong_self->_tcp_mode,strong_self->_re_use_port,strong_self->_ssrc);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user