mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-19 12:08:11 +00:00
catch exception when core not valid anymore
This commit is contained in:
parent
fe3bf89ccc
commit
6caeebd5ef
1 changed files with 6 additions and 1 deletions
|
|
@ -225,7 +225,12 @@ ClientGroupChatRoom::~ClientGroupChatRoom () {
|
|||
L_D();
|
||||
L_D_T(RemoteConference, dConference);
|
||||
|
||||
getCore()->getPrivate()->remoteListEventHandler->removeHandler(dConference->eventHandler.get());
|
||||
try {
|
||||
if (getCore()->getPrivate()->remoteListEventHandler)
|
||||
getCore()->getPrivate()->remoteListEventHandler->removeHandler(dConference->eventHandler.get());
|
||||
} catch (const bad_weak_ptr &) {
|
||||
// Unable to unregister listener here. Core is destroyed and the listener doesn't exist.
|
||||
}
|
||||
d->setCallSessionListener(nullptr);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue