Commit 6f0c7e82 authored by Fabrice Bellet's avatar Fabrice Bellet Committed by Olivier Crête
Browse files

agent: keep a ref on the agent while removal of TURN refreshes

The patch makes the agent alive at least until the last callback of
the removal of turn refreshes when a stream is deleted from the agent.

Closes #84
parent 8e5809b7
......@@ -3285,6 +3285,8 @@ on_stream_refreshes_pruned (NiceAgent *agent, NiceStream *stream)
nice_stream_close (agent, stream);
g_object_unref (agent);
agent_unlock (agent);
/* Actually free the stream. This should be done with the lock released, as
......@@ -3319,6 +3321,8 @@ nice_agent_remove_stream (
g_object_ref (agent);
/* note: remove items with matching stream_ids from both lists */
conn_check_prune_stream (agent, stream);
discovery_prune_stream (agent, stream_id);
Supports Markdown
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