Skip to content
  • Sébastien Blin's avatar
    sipcall: lock transport while initializing ICE · eebf8601
    Sébastien Blin authored
    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
    eebf8601