diff --git a/agent/conncheck.c b/agent/conncheck.c index 153009e0a459e99a60f5a0fac4924e648ce25a41..c76ade1a5d35896cb9c3cabc30d3fa234821c6cc 100644 --- a/agent/conncheck.c +++ b/agent/conncheck.c @@ -1673,16 +1673,13 @@ void conn_check_remote_credentials_set(NiceAgent *agent, NiceStream *stream) if (icheck->use_candidate) priv_mark_pair_nominated (agent, stream, component, lcand, rcand); + + g_queue_delete_link (&component->incoming_checks, k); break; } } k = k_next; } - /* Once we process the pending checks, we should free them to avoid - * reprocessing them again if a dribble-mode set_remote_candidates - * is called */ - while ((c = g_queue_pop_head (&component->incoming_checks))) - incoming_check_free (c); } }