Bug 1521879 - Part 8: Don't run triggered check logic on obsolete streams. r=mjf

Differential Revision: https://phabricator.services.mozilla.com/D18231

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Byron Campen [:bwc] 2019-02-25 21:52:26 +00:00
Родитель e1a33816af
Коммит ab0d256702
1 изменённых файлов: 6 добавлений и 0 удалений

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

@ -447,6 +447,12 @@ int nr_ice_candidate_pair_do_triggered_check(nr_ice_peer_ctx *pctx, nr_ice_cand_
} else if(pair->state==NR_ICE_PAIR_STATE_SUCCEEDED) {
r_log(LOG_ICE,LOG_DEBUG,"ICE-PEER(%s)/CAND_PAIR(%s): No new trigger check for succeeded pair",pctx->label,pair->codeword);
return(0);
} else if (pair->local->stream->obsolete) {
r_log(LOG_ICE, LOG_DEBUG,
"ICE-PEER(%s)/CAND_PAIR(%s): No new trigger check for pair with "
"obsolete stream",
pctx->label, pair->codeword);
return (0);
}
/* Do not run this logic more than once on a given pair */