From 9a808cc7521bc1e1cdb3c5938369a23ace9e80f0 Mon Sep 17 00:00:00 2001 From: chdahuzi Date: Wed, 17 Jan 2024 14:19:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=9C=89=E6=97=B6udp?= =?UTF-8?q?=E6=8E=A8=E6=B5=81=EF=BC=8Cclose=5Fstreams=E5=85=B3=E6=B5=81?= =?UTF-8?q?=E5=BB=B6=E8=BF=9F3=E7=A7=92=E6=89=8D=E4=BC=9A=E6=B3=A8?= =?UTF-8?q?=E9=94=80=E7=9A=84=E9=97=AE=E9=A2=98?= 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)