Commit 28ab0b50 authored by Olivier Crête's avatar Olivier Crête

stream: Clear connchecks on restart inside stream

parent 0e1c1099
......@@ -3698,9 +3698,6 @@ nice_agent_restart (
agent_lock();
/* step: clean up all connectivity checks */
conn_check_free (agent);
/* step: regenerate tie-breaker value */
priv_generate_tie_breaker (agent);
......@@ -3709,7 +3706,7 @@ nice_agent_restart (
/* step: reset local credentials for the stream and
* clean up the list of remote candidates */
stream_restart (stream, agent->rng);
stream_restart (agent, stream, agent->rng);
}
agent_unlock_and_emit (agent);
......
......@@ -133,10 +133,13 @@ void stream_initialize_credentials (Stream *stream, NiceRNG *rng)
* session.
*/
void
stream_restart (Stream *stream, NiceRNG *rng)
stream_restart (NiceAgent *agent, Stream *stream, NiceRNG *rng)
{
GSList *i;
/* step: clean up all connectivity checks */
conn_check_prune_stream (agent, stream);
stream->initial_binding_request_received = FALSE;
stream_initialize_credentials (stream, rng);
......
......@@ -93,7 +93,7 @@ void
stream_initialize_credentials (Stream *stream, NiceRNG *rng);
void
stream_restart (Stream *stream, NiceRNG *rng);
stream_restart (NiceAgent *agent, Stream *stream, NiceRNG *rng);
G_END_DECLS
......
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