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:
@ -125,8 +125,8 @@
|
||||
didError:(NSError *)error {
|
||||
NSString *message =
|
||||
[NSString stringWithFormat:@"%@", error.localizedDescription];
|
||||
[self showAlertWithMessage:message];
|
||||
[self hangup];
|
||||
[self showAlertWithMessage:message];
|
||||
}
|
||||
|
||||
#pragma mark - ARDVideoCallViewDelegate
|
||||
|
||||
Reference in New Issue
Block a user