解决有时udp推流,close_streams关流延迟3秒才会注销的问题
This commit is contained in:
parent
6514be74f1
commit
9a808cc752
|
|
@ -60,6 +60,7 @@ void RtpSession::onError(const SockException &err) {
|
||||||
WarnP(this) << _stream_id << " " << err;
|
WarnP(this) << _stream_id << " " << err;
|
||||||
if (_process) {
|
if (_process) {
|
||||||
RtpSelector::Instance().delProcess(_stream_id, _process.get());
|
RtpSelector::Instance().delProcess(_stream_id, _process.get());
|
||||||
|
_process = nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -272,4 +273,4 @@ const char *RtpSession::searchByPsHeaderFlag(const char *data, size_t len) {
|
||||||
}
|
}
|
||||||
|
|
||||||
}//namespace mediakit
|
}//namespace mediakit
|
||||||
#endif//defined(ENABLE_RTPPROXY)
|
#endif//defined(ENABLE_RTPPROXY)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue