修复rtp udp推流时,调用close_stream延时3秒才注销的bug (#3226)

This commit is contained in:
chdahuzi
2024-01-17 18:11:56 +08:00
committed by GitHub
parent 6514be74f1
commit 8d951f06a0

View File

@@ -60,6 +60,7 @@ void RtpSession::onError(const SockException &err) {
WarnP(this) << _stream_id << " " << err;
if (_process) {
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
#endif//defined(ENABLE_RTPPROXY)
#endif//defined(ENABLE_RTPPROXY)