mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 02:58:07 +00:00
fix crash restart app when current view is ChatConversationInfoView
This commit is contained in:
parent
007bea2eaf
commit
15ae79d561
3 changed files with 9 additions and 0 deletions
|
|
@ -49,4 +49,6 @@
|
|||
- (IBAction)onBackClick:(id)sender;
|
||||
- (IBAction)onQuitClick:(id)sender;
|
||||
|
||||
- (void)removeCallbacks;
|
||||
|
||||
@end
|
||||
|
|
|
|||
|
|
@ -132,6 +132,10 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
}
|
||||
|
||||
- (void)viewWillDisappear:(BOOL)animated {
|
||||
[self removeCallbacks];
|
||||
}
|
||||
|
||||
- (void)removeCallbacks {
|
||||
if (!_room || !_chatRoomCbs)
|
||||
return;
|
||||
|
||||
|
|
|
|||
|
|
@ -66,6 +66,9 @@
|
|||
if (PhoneMainView.instance.currentView == ChatConversationView.compositeViewDescription) {
|
||||
ChatConversationView *view = VIEW(ChatConversationView);
|
||||
[view removeCallBacks];
|
||||
} else if (PhoneMainView.instance.currentView == ChatConversationInfoView.compositeViewDescription) {
|
||||
ChatConversationInfoView *view = VIEW(ChatConversationInfoView);
|
||||
[view removeCallbacks];
|
||||
}
|
||||
[CoreManager.instance stopLinphoneCore];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue