解决有时udp推流,close_streams关流延迟3秒才会注销的问题

This commit is contained in:
chdahuzi 2024-01-17 14:19:38 +08:00 committed by GitHub
parent 6514be74f1
commit 9a808cc752
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -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)