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); }