ice: only print ICE nominated flag once
This commit is contained in:
parent
b2b33d7e01
commit
06044b0553
1 changed files with 5 additions and 3 deletions
|
@ -147,14 +147,16 @@ static int handle_stun(struct ice *ice, struct icem *icem,
|
|||
|
||||
/* 7.2.1.5. Updating the Nominated Flag */
|
||||
if (use_cand) {
|
||||
if (ice->lrole == ROLE_CONTROLLED) {
|
||||
if (cp->state == CANDPAIR_SUCCEEDED) {
|
||||
cp->nominated = true;
|
||||
if (ice->lrole == ROLE_CONTROLLED &&
|
||||
cp->state == CANDPAIR_SUCCEEDED) {
|
||||
|
||||
if (!cp->nominated) {
|
||||
icecomp_printf(comp, "setting NOMINATED"
|
||||
" flag on candpair [%H]\n",
|
||||
icem_candpair_debug, cp);
|
||||
}
|
||||
|
||||
cp->nominated = true;
|
||||
}
|
||||
|
||||
/* Cancel conncheck. Choose Selected Pair */
|
||||
|
|
Loading…
Add table
Reference in a new issue