Ensure call termination is executed on the Core queue

This commit is contained in:
Benoit Martins 2025-09-15 11:16:15 +02:00
parent f074caa49a
commit 63c5fcb5fd

View file

@ -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)")
}
}
}