mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 02:58:07 +00:00
Ensure call termination is executed on the Core queue
This commit is contained in:
parent
c6291f61d6
commit
54ca929f88
1 changed files with 7 additions and 5 deletions
|
|
@ -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)")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue