summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2023-12-21 21:37:36 +0100
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2023-12-21 21:39:53 +0100
commit308db191200c891296a77cee038b77c41a1d1c6d (patch)
treee5ddbcd22299cba64d6038491f3a40b2b6a1f6cd
parent724910c73483cc85016bfaa37ffd0b7c9ad2f8dd (diff)
downloadfork-godot-webrtc-native-308db191200c891296a77cee038b77c41a1d1c6d.tar.gz
fork-godot-webrtc-native-308db191200c891296a77cee038b77c41a1d1c6d.tar.bz2
fork-godot-webrtc-native-308db191200c891296a77cee038b77c41a1d1c6d.zip
Call rtc::Cleanup when unloading the library
Avoid potential crash at exit.
-rw-r--r--src/WebRTCLibPeerConnection.cpp1
1 files changed, 1 insertions, 0 deletions
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) {