mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Fixed several main thread hangs
This commit is contained in:
parent
3883d89aa7
commit
c90fef2c56
2 changed files with 4 additions and 4 deletions
|
|
@ -143,7 +143,9 @@ class ContactAvatarModel: ObservableObject, Identifiable {
|
|||
|
||||
func removeFriendDelegate() {
|
||||
if let delegate = friendDelegate {
|
||||
presenceStatus = .Offline
|
||||
DispatchQueue.main.async {
|
||||
self.presenceStatus = .Offline
|
||||
}
|
||||
if let friendTmp = friend {
|
||||
friendTmp.removeDelegate(delegate: delegate)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -93,9 +93,7 @@ class Log: LoggingServiceDelegate {
|
|||
}
|
||||
#if USE_CRASHLYTICS
|
||||
if FirebaseApp.app() != nil {
|
||||
DispatchQueue.global(qos: .background).async {
|
||||
Crashlytics.crashlytics().log(log)
|
||||
}
|
||||
Crashlytics.crashlytics().log(log)
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue