Skip to content
Snippets Groups Projects
Commit 2251dbd2 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

sipcall: schedule restart on main thread

avoid deadlock by locking mutex on next loop like
other pjsip callbacks

Change-Id: I6e227fc961c41d35c041c907eb2bc73dbb373119
parent ae0fa0d4
No related branches found
No related tags found
No related merge requests found
......@@ -1082,8 +1082,11 @@ SIPCall::onMediaUpdate()
// Main call (no subcalls) must wait for ICE now, the rest of code needs to access
// to a negotiated transport.
if (not isSubcall())
waitForIceAndStartMedia();
runOnMainThread([w = weak()] {
if (auto this_ = w.lock())
if (not this_->isSubcall())
this_->waitForIceAndStartMedia();
});
}
void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment