From 61932234d908855b09a6fcc02cf2fbfc9f9886db Mon Sep 17 00:00:00 2001 From: Danmei Chen Date: Wed, 18 Mar 2020 14:50:20 +0100 Subject: [PATCH] fix crash of iterate --- Classes/LinphoneAppDelegate.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Classes/LinphoneAppDelegate.m b/Classes/LinphoneAppDelegate.m index 2a46b7113..13309fd19 100644 --- a/Classes/LinphoneAppDelegate.m +++ b/Classes/LinphoneAppDelegate.m @@ -62,7 +62,9 @@ LinphoneCall *call = linphone_core_get_current_call(LC); if (!call) { - [LinphoneManager.instance stopLinphoneCore]; + dispatch_async(dispatch_get_main_queue(), ^{ + [LinphoneManager.instance stopLinphoneCore]; + }); } }