summaryrefslogtreecommitdiff
path: root/indra/llwebrtc/llwebrtc.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2025-10-13 20:16:52 +0300
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2025-10-13 21:19:24 +0300
commit57a9e51360aebf142bbbdc2663f68ebacfb7d8f5 (patch)
tree9ee0b36fa08a99444260baaf5ea9b019758bb125 /indra/llwebrtc/llwebrtc.cpp
parent95337dfc36113dca030c38a447b2ffa29b5bed9c (diff)
#4819 WebRTC crashes after a failed login
Diffstat (limited to 'indra/llwebrtc/llwebrtc.cpp')
-rw-r--r--indra/llwebrtc/llwebrtc.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/llwebrtc/llwebrtc.cpp b/indra/llwebrtc/llwebrtc.cpp
index 828896f620..d5182b16e7 100644
--- a/indra/llwebrtc/llwebrtc.cpp
+++ b/indra/llwebrtc/llwebrtc.cpp
@@ -1495,6 +1495,10 @@ void freePeerConnection(LLWebRTCPeerConnectionInterface* peer_connection)
void init(LLWebRTCLogCallback* logCallback)
{
+ if (gWebRTCImpl)
+ {
+ return;
+ }
gWebRTCImpl = new LLWebRTCImpl(logCallback);
gWebRTCImpl->init();
}