From e203a6cbb49aa968224cc3be363373345f9b8d19 Mon Sep 17 00:00:00 2001 From: Benjamin Reis Date: Tue, 26 Jun 2018 15:22:14 +0200 Subject: [PATCH] do not make UI call from other than main thread --- Classes/CallView.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Classes/CallView.m b/Classes/CallView.m index a7e762899..4e3c18bd7 100644 --- a/Classes/CallView.m +++ b/Classes/CallView.m @@ -484,7 +484,9 @@ static void hideSpinner(LinphoneCall *call, void *user_data) { - (void)bluetoothAvailabilityUpdateEvent:(NSNotification *)notif { bool available = [[notif.userInfo objectForKey:@"available"] intValue]; - [self hideSpeaker:available]; + dispatch_async(dispatch_get_main_queue(), ^{ + [self hideSpeaker:available]; + }); } - (void)callUpdateEvent:(NSNotification *)notif {