open-webrtc-toolkit / owt-client-native

Open WebRTC Toolkit client SDK for native Windows/Linux/iOS applications.
https://01.org/open-webrtc-toolkit
Apache License 2.0
389 stars 181 forks source link

Add a mutex for release #592

Closed suncf2 closed 2 years ago

suncf2 commented 2 years ago

The function ClosePeerConnection of ConferencePeerConnectionChannel may be executed by 2 threads simultaneously. This may cause a crash on release of rtc::scoped_refptr peerconnection.