From f45830cbb8f86201891857d75c6bfa7a44b8d263 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Sun, 28 Nov 2021 21:43:21 +0800 Subject: [PATCH] =?UTF-8?q?Refine:=20=E4=BC=98=E5=8C=96webrtc=E5=AF=B9?= =?UTF-8?q?=E8=B1=A1=E8=BF=BD=E8=B8=AA=E6=9C=BA=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 3rdpart/ZLToolKit | 2 +- webrtc/WebRtcTransport.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/3rdpart/ZLToolKit b/3rdpart/ZLToolKit index 32361898..6c476bed 160000 --- a/3rdpart/ZLToolKit +++ b/3rdpart/ZLToolKit @@ -1 +1 @@ -Subproject commit 323618980315228e46a68204c88c482c150aab82 +Subproject commit 6c476bed4f0d0ee51bb550757aad71b4a412d92f diff --git a/webrtc/WebRtcTransport.cpp b/webrtc/WebRtcTransport.cpp index 7d10b06f..822015f9 100644 --- a/webrtc/WebRtcTransport.cpp +++ b/webrtc/WebRtcTransport.cpp @@ -43,9 +43,11 @@ static onceToken token([]() { }//namespace RTC +static atomic s_key{0}; + WebRtcTransport::WebRtcTransport(const EventPoller::Ptr &poller) { _poller = poller; - _identifier = to_string(reinterpret_cast(this)); + _identifier = to_string(++s_key); _packet_pool.setSize(64); }