Describe the bug
When I call call.hangUp(options: nil), I always get the following warning:
Thread Performance Checker: Thread running at User-initiated quality-of-service class waiting on a thread without a QoS class specified (base priority 31). Investigate ways to avoid priority inversions.
Sometimes this causes my screen to freeze for several seconds, almost like a system crash.
Notice that the screen might freeze for several seconds.
Code Snippet
self.call?.hangUp(options: nil) { error in
if let error = error {
DDLog("Failed to hang up: \(error.localizedDescription)")
} else {
DDLog("Call ended successfully")
}
self.deviceManager = nil
self.call?.delegate = nil
self.call = nil
completion?()
}
Expected behavior
I expected that calling call.hangUp(options: nil) would hang up the call without triggering any warnings or causing the screen to freeze.
Additional context
I am using CallKit.
Setup (please complete the following information):
Describe the bug When I call call.hangUp(options: nil), I always get the following warning:
Sometimes this causes my screen to freeze for several seconds, almost like a system crash.
Exception or Stack Trace
To Reproduce
Code Snippet
Expected behavior I expected that calling call.hangUp(options: nil) would hang up the call without triggering any warnings or causing the screen to freeze.
Additional context I am using CallKit.
Setup (please complete the following information):
Thanks in advance for your help!