summaryrefslogtreecommitdiff
path: root/agent
diff options
context:
space:
mode:
authorMiguel París <mparisdiaz@gmail.com>2017-11-08 16:26:47 +0000
committerOlivier Crête <olivier.crete@collabora.com>2017-11-28 12:32:28 -0500
commit17f30e4465efe9533799b02d6f95feeaf0f2748c (patch)
tree7d4afcff5c9de0dd49438ba62b297e6007a6d8e7 /agent
parentc63349894b3fe974494453a883dfb5ad05df5a46 (diff)
downloadlibnice-17f30e4465efe9533799b02d6f95feeaf0f2748c.tar.gz
conncheck: do not require that all streams have a connection check list
One or more streams might not have any connection check list if the number of streams differs from the peer agent. Differential Revision: https://phabricator.freedesktop.org/D1880
Diffstat (limited to 'agent')
-rw-r--r--agent/conncheck.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/agent/conncheck.c b/agent/conncheck.c
index e584c0e..beb43c3 100644
--- a/agent/conncheck.c
+++ b/agent/conncheck.c
@@ -402,23 +402,6 @@ priv_conn_check_find_next_frozen (GSList *conn_check_list)
}
/*
- * Returns the number of check lists of the agent
- */
-static guint
-priv_number_of_check_lists (NiceAgent *agent)
-{
- guint n = 0;
- GSList *i;
-
- for (i = agent->streams; i ; i = i->next) {
- NiceStream *stream = i->data;
- if (stream->conncheck_list != NULL)
- n++;
- }
- return n;
-}
-
-/*
* Returns the number of active check lists of the agent
*/
static guint
@@ -1060,12 +1043,6 @@ static gboolean priv_conn_check_tick_unlocked (NiceAgent *agent)
gboolean keep_timer_going = FALSE;
GSList *i, *j;
- /* the conncheck really starts when we have built
- * a connection check list for each stream
- */
- if (priv_number_of_check_lists (agent) < g_slist_length (agent->streams))
- return TRUE;
-
/* configure the initial state of the check lists of the agent
* as described in ICE spec, 5.7.4
*