Bug 1355259: only filter out udp candidates if force_tcp is set. r=mjf

MozReview-Commit-ID: AKv0N74epZ1

--HG--
extra : rebase_source : 9a77174afca8fd45b614ec49f4eb86f04ced888a
This commit is contained in:
Nils Ohlmeier [:drno] 2017-04-10 16:52:09 -07:00
parent 9b51c27976
commit 37ee2e02bb

View File

@ -510,7 +510,8 @@ PeerConnectionMedia::ActivateOrRemoveTransports(const JsepSession& aSession,
candidates.erase(std::remove_if(candidates.begin(),
candidates.end(),
[](const std::string & s) {
return s.find(" UDP "); }),
return s.find(" UDP ") != std::string::npos ||
s.find(" udp ") != std::string::npos; }),
candidates.end());
}