Bug 1326005: Always update the Jsep ICE transport's candidate list when negotiation completes. r=mjf

Differential Revision: https://phabricator.services.mozilla.com/D82036
This commit is contained in:
Byron Campen [:bwc] 2020-07-08 18:32:17 +00:00
parent 40f9bf512c
commit 88844c36fc

View file

@ -1098,13 +1098,13 @@ nsresult JsepSessionImpl::FinalizeTransport(const SdpAttributeList& remote,
// We do sanity-checking for these in ParseSdp
ice->mUfrag = remote.GetIceUfrag();
ice->mPwd = remote.GetIcePwd();
if (remote.HasAttribute(SdpAttribute::kCandidateAttribute)) {
ice->mCandidates = remote.GetCandidate();
}
transport->mIce = std::move(ice);
}
if (remote.HasAttribute(SdpAttribute::kCandidateAttribute)) {
transport->mIce->mCandidates = remote.GetCandidate();
}
if (!transport->mDtls) {
// RFC 5763 says:
//