From 7cc881d190b27e57580dfa28c3102626b32fae22 Mon Sep 17 00:00:00 2001 From: hewwatt Date: Thu, 18 May 2017 01:33:34 -0700 Subject: [PATCH] iOS: Fix runtime error in AppRTCMobile bugFix: `poping-up` alert message before `hanging-up` will result in runtime assertation as: [Assert] Trying to dismiss the presentation controller while transitioning already. Warning: Attempt to dismiss from view controller while a presentation or dismiss is in progress! [Assert] transitionViewForCurrentTransition is not set, presentation controller was dismissed during the presentation? (<_UIAlertControllerAlertPresentationController: 0x12fd57bf0>) BUG=webrtc:7569 Review-Url: https://codereview.webrtc.org/2863473005 Cr-Commit-Position: refs/heads/master@{#18190} --- .../examples/objc/AppRTCMobile/ios/ARDVideoCallViewController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webrtc/examples/objc/AppRTCMobile/ios/ARDVideoCallViewController.m b/webrtc/examples/objc/AppRTCMobile/ios/ARDVideoCallViewController.m index 732e4b6511..9a9b9c5b31 100644 --- a/webrtc/examples/objc/AppRTCMobile/ios/ARDVideoCallViewController.m +++ b/webrtc/examples/objc/AppRTCMobile/ios/ARDVideoCallViewController.m @@ -125,8 +125,8 @@ didError:(NSError *)error { NSString *message = [NSString stringWithFormat:@"%@", error.localizedDescription]; - [self showAlertWithMessage:message]; [self hangup]; + [self showAlertWithMessage:message]; } #pragma mark - ARDVideoCallViewDelegate