From 54ca929f8897c71f294d1c9bf85a14f9adeee248 Mon Sep 17 00:00:00 2001 From: Benoit Martins Date: Mon, 15 Sep 2025 11:16:15 +0200 Subject: [PATCH] Ensure call termination is executed on the Core queue --- Linphone/TelecomManager/TelecomManager.swift | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Linphone/TelecomManager/TelecomManager.swift b/Linphone/TelecomManager/TelecomManager.swift index 07d8bf615..3c44bb469 100644 --- a/Linphone/TelecomManager/TelecomManager.swift +++ b/Linphone/TelecomManager/TelecomManager.swift @@ -342,11 +342,13 @@ class TelecomManager: ObservableObject { } func terminateCall(call: Call) { - do { - try call.terminate() - Log.info("Call terminated") - } catch { - Log.error("Failed to terminate call failed because \(error)") + CoreContext.shared.doOnCoreQueue { _ in + do { + try call.terminate() + Log.info("Call terminated") + } catch { + Log.error("Failed to terminate call failed because \(error)") + } } }