From adb8340752d28fa4f80542a146857557705e208c Mon Sep 17 00:00:00 2001 From: Nanang Izzuddin Date: Fri, 24 Dec 2021 15:15:42 +0700 Subject: [PATCH] Revert "After ICE nego is completed, don't perform triggered check and ignore any completion of outgoing check." This reverts commit 105ca1675d32575f6e78ab8fdd1bd3db21ba37dd. --- pjnath/src/pjnath/ice_session.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/pjnath/src/pjnath/ice_session.c b/pjnath/src/pjnath/ice_session.c index 223015716..450f12e19 100644 --- a/pjnath/src/pjnath/ice_session.c +++ b/pjnath/src/pjnath/ice_session.c @@ -1399,8 +1399,6 @@ static void update_comp_check(pj_ice_sess *ice, unsigned comp_id, { pj_ice_sess_comp *comp; - pj_assert(!ice->is_complete); - comp = find_comp(ice, comp_id); if (comp->valid_check == NULL) { comp->valid_check = check; @@ -2691,15 +2689,6 @@ static void on_stun_request_complete(pj_stun_session *stun_sess, return; } - /* Check if ICE has been completed */ - if (ice->is_complete) { - LOG4((ice->obj_name, - "Ignored completed STUN request after ICE nego has been " - "completed!")); - pj_grp_lock_release(ice->grp_lock); - return; - } - /* Verify check (check ID may change as trickle ICE re-sort the list */ if (tdata != check->tdata) { /* Okay, it was re-sorted, lookup using lcand & rcand */ @@ -3283,13 +3272,6 @@ static void handle_incoming_check(pj_ice_sess *ice, pj_ice_sess_cand *rcand; unsigned i; - /* Check if ICE has been completed */ - if (ice->is_complete) { - LOG4((ice->obj_name, - "Ignored incoming check after ICE nego has been completed!")); - return; - } - comp = find_comp(ice, rcheck->comp_id); /* Find remote candidate based on the source transport address of