From 4ef9f8f14b35ed388c294d53767a0dca0e890924 Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> Date: Tue, 25 Aug 2026 22:15:09 +0300 Subject: #6109 StopRecording() crash --- indra/llwebrtc/llwebrtc.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/indra/llwebrtc/llwebrtc.cpp b/indra/llwebrtc/llwebrtc.cpp index b33cb054d4..5b322d1b5d 100644 --- a/indra/llwebrtc/llwebrtc.cpp +++ b/indra/llwebrtc/llwebrtc.cpp @@ -892,7 +892,9 @@ void LLWebRTCImpl::updateDevices() void LLWebRTCImpl::OnDevicesUpdated() { - updateDevices(); + // OnDevicesUpdated() is called on macOS CoreAudio's device-change callback + // thread. Calling updateDevices() on that thread causes a deadlock. + mWorkerThread->PostTask([this] { updateDevices(); }); } -- cgit v1.3