Commit 195db6b3 authored by Fabrice Bellet's avatar Fabrice Bellet Committed by Olivier Crête

agent: add new pairs only for gathering streams

At the end of the local candidate gathering process, we only create new
pairs for streams that are in gathering state.

Other stream that may be in ready state for example, due to a
previously succeeded conncheck process, may have accumulated some
couples (local,remote) candidates that have not resulted in the creation
a new pair during this previous conncheck process, and we don't want
these new pairs to be added now, because it would generate unneeded
transition changes for a stream unconcerned by this gathering.

Differential Revision: https://phabricator.freedesktop.org/D1755
parent 07366a5b
......@@ -2032,6 +2032,17 @@ void agent_gathering_done (NiceAgent *agent)
for (i = agent->streams; i; i = i->next) {
NiceStream *stream = i->data;
/* We ignore streams not in gathering state, typically already in
* ready state. Such streams may have couples (local,remote)
* candidates that have not resulted in the creation a new pair
* during a previous conncheck session, and we don't want these new
* pairs to be added now, because it would generate unneeded
* transition changes for a stream unconcerned by this gathering.
*/
if (!stream->gathering)
continue;
for (j = stream->components; j; j = j->next) {
NiceComponent *component = j->data;
......
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