From 02a0b0402ac096561b4445ff96ee901138661b2f Mon Sep 17 00:00:00 2001 From: xia-chu <771730766@qq.com> Date: Fri, 29 Nov 2024 21:08:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Drtp=E5=8D=95=E7=AB=AF?= =?UTF-8?q?=E5=8F=A3=E6=A8=A1=E5=BC=8F=E4=B8=BB=E5=8A=A8=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E6=97=B6=E7=BA=BF=E7=A8=8B=E5=AE=89=E5=85=A8=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, 1 insertion(+), 2 deletions(-) diff --git a/src/Rtp/RtpSession.cpp b/src/Rtp/RtpSession.cpp index a68146d7..58078ece 100644 --- a/src/Rtp/RtpSession.cpp +++ b/src/Rtp/RtpSession.cpp @@ -127,8 +127,7 @@ void RtpSession::onRtpPacket(const char *data, size_t len) { weak_ptr weak_self = static_pointer_cast(shared_from_this()); _process->setOnDetach([weak_self](const SockException &ex) { if (auto strong_self = weak_self.lock()) { - strong_self->_process = nullptr; - strong_self->shutdown(ex); + strong_self->safeShutdown(ex); } }); }