mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-27 08:49:19 +00:00
Fix crash on multiple end calls
This commit is contained in:
parent
83a52a3929
commit
8d9c3d28df
1 changed files with 4 additions and 2 deletions
|
|
@ -448,8 +448,10 @@ void CallsListModel::handleCallStateChanged (const shared_ptr<linphone::Call> &c
|
|||
|
||||
case linphone::Call::State::End:
|
||||
case linphone::Call::State::Error:{
|
||||
CallModel * model = &call->getData<CallModel>("call-model");
|
||||
model->callEnded();
|
||||
if(call->dataExists("call-model")) {
|
||||
CallModel * model = &call->getData<CallModel>("call-model");
|
||||
model->callEnded();
|
||||
}
|
||||
removeCall(call);
|
||||
} break;
|
||||
case linphone::Call::State::StreamsRunning: {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue