Resort ICE checklist upon entering nomination stage (#2806)

This commit is contained in:
sauwming 2021-08-30 11:45:52 +08:00 committed by GitHub
parent 661a8cef67
commit 328a6837cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -3463,7 +3463,11 @@ static void handle_incoming_check(pj_ice_sess *ice,
LOG4((ice->obj_name, "New triggered check added: %d",
ice->clist.count));
pj_log_push_indent();
perform_check(ice, &ice->clist, ice->clist.count++, nominate);
/* Re-sort the list because of the newly added pair. */
sort_checklist(ice, &ice->clist);
pj_log_pop_indent();
} else {