Commit 59378aa3 authored by Simon Morlat's avatar Simon Morlat
Browse files

Fix crash when receiving a call with ICE, but not codecs are matching.

parent e0a07ea8
......@@ -2369,6 +2369,8 @@ void MediaSession::initiateIncoming () {
if (d->deferIncomingNotification) {
auto incomingNotificationTask = [d](){
/* There is risk that the call can be terminated before this task is executed, for example if offer/answer fails.*/
if (d->state != State::Idle) return;
d->deferIncomingNotification = false;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment