From 308db191200c891296a77cee038b77c41a1d1c6d Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Thu, 21 Dec 2023 21:37:36 +0100 Subject: Call rtc::Cleanup when unloading the library Avoid potential crash at exit. --- src/WebRTCLibPeerConnection.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/WebRTCLibPeerConnection.cpp b/src/WebRTCLibPeerConnection.cpp index effc1d7..88bd29a 100644 --- a/src/WebRTCLibPeerConnection.cpp +++ b/src/WebRTCLibPeerConnection.cpp @@ -48,6 +48,7 @@ void WebRTCLibPeerConnection::initialize_signaling() { } void WebRTCLibPeerConnection::deinitialize_signaling() { + rtc::Cleanup(); } Error WebRTCLibPeerConnection::_parse_ice_server(rtc::Configuration &r_config, Dictionary p_server) { -- cgit v1.2.3