From f846861f04fe8a5c755a12da45ba6e12e38a9360 Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> Date: Thu, 2 Oct 2025 21:06:32 +0300 Subject: #4777 Fix webrtc crashing in worker threads on shutdown --- indra/llwebrtc/llwebrtc_impl.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'indra/llwebrtc/llwebrtc_impl.h') diff --git a/indra/llwebrtc/llwebrtc_impl.h b/indra/llwebrtc/llwebrtc_impl.h index df06cb88fa..01cfb17ced 100644 --- a/indra/llwebrtc/llwebrtc_impl.h +++ b/indra/llwebrtc/llwebrtc_impl.h @@ -422,6 +422,9 @@ class LLWebRTCImpl : public LLWebRTCDeviceInterface, public webrtc::AudioDeviceO ~LLWebRTCImpl() { delete mLogSink; + + // Explicit cleanup for the sake of debugging and crash stacks + mPeerCustomProcessor = nullptr; } void init(); @@ -669,6 +672,8 @@ class LLWebRTCPeerConnectionImpl : public LLWebRTCPeerConnectionInterface, // data std::vector mDataObserverList; webrtc::scoped_refptr mDataChannel; + + std::atomic mPendingJobs; }; } -- cgit v1.2.3