do not make UI call from other than main thread

This commit is contained in:
Benjamin Reis 2018-06-26 15:22:14 +02:00
parent de106ce4d9
commit e203a6cbb4

View file

@ -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 {