diff options
author | Roxie Linden <roxie@lindenlab.com> | 2024-03-05 18:57:22 -0800 |
---|---|---|
committer | Roxie Linden <roxie@lindenlab.com> | 2024-03-05 18:57:22 -0800 |
commit | 70044b9d2bbc594f0e8f3154feb2dbce77a7af82 (patch) | |
tree | 56d3cee5792ca22c93f496b118a9b8adc1057e30 /indra/llwebrtc/llwebrtc.cpp | |
parent | 2c2529d3c8452c5c6909c6c9bbda6b4259a29b59 (diff) |
The response from the provision account call was being called twice for some reason
Diffstat (limited to 'indra/llwebrtc/llwebrtc.cpp')
-rw-r--r-- | indra/llwebrtc/llwebrtc.cpp | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/indra/llwebrtc/llwebrtc.cpp b/indra/llwebrtc/llwebrtc.cpp index adde174a74..74af16679a 100644 --- a/indra/llwebrtc/llwebrtc.cpp +++ b/indra/llwebrtc/llwebrtc.cpp @@ -649,21 +649,26 @@ bool LLWebRTCPeerConnectionImpl::initializeConnection() return true; } -void LLWebRTCPeerConnectionImpl::shutdownConnection() +bool LLWebRTCPeerConnectionImpl::shutdownConnection() { - mWebRTCImpl->PostSignalingTask( - [this]() - { - if (mPeerConnection) - { - mPeerConnection->Close(); - mPeerConnection = nullptr; - } - for (auto &observer : mSignalingObserverList) + if (mPeerConnection) + { + mWebRTCImpl->PostSignalingTask( + [this]() { - observer->OnPeerShutDown(); - } - }); + if (mPeerConnection) + { + mPeerConnection->Close(); + mPeerConnection = nullptr; + } + for (auto &observer : mSignalingObserverList) + { + observer->OnPeerShutDown(); + } + }); + return true; + } + return false; } void LLWebRTCPeerConnectionImpl::enableSenderTracks(bool enable) |