From c025b5092ddb90676f850c2ec79bfb5381c1b1f7 Mon Sep 17 00:00:00 2001 From: ziyue <1213642868@qq.com> Date: Wed, 8 Sep 2021 18:06:40 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=B2=E6=AD=A2=E8=AE=BF=E9=97=AE=E7=A9=BA?= =?UTF-8?q?=E6=8C=87=E9=92=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webrtc/WebRtcTransport.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/webrtc/WebRtcTransport.cpp b/webrtc/WebRtcTransport.cpp index 23c701b2..a2698bf4 100644 --- a/webrtc/WebRtcTransport.cpp +++ b/webrtc/WebRtcTransport.cpp @@ -967,10 +967,7 @@ void WebRtcTransportImp::onBeforeEncryptRtp(const char *buf, int &len, void *ctx void WebRtcTransportImp::onShutdown(const SockException &ex){ WarnL << ex.what(); unrefSelf(ex); - if (_session) { - _session->shutdown(ex); - _session = nullptr; - } + _session->shutdown(ex); } /////////////////////////////////////////////////////////////////////////////////////////////