Bug 1253706: Allow empty list of STUN/TURN servers to be set. r=mjf

Differential Revision: https://phabricator.services.mozilla.com/D135368
This commit is contained in:
Byron Campen [:bwc] 2022-02-08 23:37:57 +00:00
Родитель 11a44236c6
Коммит bd9b8e270e
1 изменённых файлов: 0 добавлений и 4 удалений

Просмотреть файл

@ -766,8 +766,6 @@ NrIceCtx::Controlling NrIceCtx::GetControlling() {
nsresult NrIceCtx::SetStunServers(
const std::vector<NrIceStunServer>& stun_servers) {
if (stun_servers.empty()) return NS_OK;
// We assume nr_ice_stun_server is memmoveable. That's true right now.
std::vector<nr_ice_stun_server> servers;
@ -795,8 +793,6 @@ nsresult NrIceCtx::SetStunServers(
// Could we do a template or something?
nsresult NrIceCtx::SetTurnServers(
const std::vector<NrIceTurnServer>& turn_servers) {
if (turn_servers.empty()) return NS_OK;
// We assume nr_ice_turn_server is memmoveable. That's true right now.
std::vector<nr_ice_turn_server> servers;