mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Avoid using sync when dispatching to main queue (risk deadlock when entering foreground)
This commit is contained in:
parent
b2a7a11dba
commit
6478fbf03e
1 changed files with 1 additions and 1 deletions
|
|
@ -106,7 +106,7 @@ final class ContactsManager: ObservableObject {
|
|||
do {
|
||||
var contactCounter = 0
|
||||
try store.enumerateContacts(with: request, usingBlock: { (contact, _) in
|
||||
DispatchQueue.main.sync {
|
||||
DispatchQueue.main.async {
|
||||
let newContact = Contact(
|
||||
identifier: contact.identifier,
|
||||
firstName: contact.givenName,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue