From 8d951f06a0bddf2b202c2b6f9ae6b738789ae969 Mon Sep 17 00:00:00 2001 From: chdahuzi Date: Wed, 17 Jan 2024 18:11:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Drtp=20udp=E6=8E=A8=E6=B5=81?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E8=B0=83=E7=94=A8close=5Fstream=E5=BB=B6?= =?UTF-8?q?=E6=97=B63=E7=A7=92=E6=89=8D=E6=B3=A8=E9=94=80=E7=9A=84bug=20(#?= =?UTF-8?q?3226)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Rtp/RtpSession.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Rtp/RtpSession.cpp b/src/Rtp/RtpSession.cpp index 40db50f3..006b1c82 100644 --- a/src/Rtp/RtpSession.cpp +++ b/src/Rtp/RtpSession.cpp @@ -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) \ No newline at end of file +#endif//defined(ENABLE_RTPPROXY)