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 <UINavigationController: 0x13081e200> 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}
This commit is contained in:
hewwatt
2017-05-18 01:33:34 -07:00
committed by Commit bot
parent 577f5dc60b
commit 7cc881d190

View File

@ -125,8 +125,8 @@
didError:(NSError *)error {
NSString *message =
[NSString stringWithFormat:@"%@", error.localizedDescription];
[self showAlertWithMessage:message];
[self hangup];
[self showAlertWithMessage:message];
}
#pragma mark - ARDVideoCallViewDelegate