Commit eb7c964d authored by Youness Alaoui's avatar Youness Alaoui

Add full support for refreshs as well as retransmissions of those turn refresh requests

parent b1957e7e
......@@ -88,6 +88,7 @@ struct _NiceAgent
GSource *discovery_timer_source; /**< source of discovery timer */
GSource *conncheck_timer_source; /**< source of conncheck timer */
GSource *keepalive_timer_source; /**< source of keepalive timer */
GSList *refresh_list; /**< list of CandidateRefresh items */
guint64 tie_breaker; /**< tie breaker (ICE sect 5.2
"Determining Role" ID-19) */
GStaticRecMutex mutex; /* Mutex used for thread-safe lib */
......
......@@ -371,6 +371,8 @@ nice_agent_init (NiceAgent *agent)
agent->discovery_timer_source = NULL;
agent->conncheck_timer_source = NULL;
agent->keepalive_timer_source = NULL;
agent->refresh_list = NULL;
agent->compatibility = NICE_COMPATIBILITY_DRAFT19;
stun_agent_init (&agent->stun_agent, STUN_ALL_KNOWN_ATTRIBUTES,
......@@ -935,6 +937,7 @@ nice_agent_remove_stream (
/* note: remove items with matching stream_ids from both lists */
conn_check_prune_stream (agent, stream);
discovery_prune_stream (agent, stream_id);
refresh_prune_stream (agent, stream_id);
/* remove the stream itself */
for (i = stream->components; i; i = i->next) {
......@@ -1761,6 +1764,8 @@ nice_agent_dispose (GObject *object)
/* step: free resources for the binding discovery timers */
discovery_free (agent);
g_assert (agent->discovery_list == NULL);
refresh_free (agent);
g_assert (agent->refresh_list == NULL);
/* step: free resources for the connectivity check timers */
conn_check_free (agent);
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment