Skip to content
Snippets Groups Projects
Commit eebf8601 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

sipcall: lock transport while initializing ICE

When starting an outgoing call, if the ICE initialization is too fast:
+ SIPCall::initIceMediaTransport will init the ICE transport
+ onInitDone will be called before tmpMediaTransport_ initialized
+ JamiAccount::SIPStartCall will be called and add ICE candidates
BUT because transportMtx_ is not locked, tmpMediaTransport_ will be null
and no ICE transport will be added.

This is why createUTransport should be done while locked. Anyway the method is
async so should not block.

GitLab: #574
Change-Id: Id88dc92f6d77c18de3ea4614e2b5fd79d3429ff0
parent 89f894c1
Branches
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment