Commit 8b1fa846 authored by Fabrice Bellet's avatar Fabrice Bellet Committed by Olivier Crête

conncheck: state is connected when a pair is nominated

This patch fixes is bug introduced in commit 1ab9d7c1 "conncheck:
Separate valid and succeded states", with the introduction of the valid
flag. The agent really should go to connected state when we have a
nominated pair, and not just a valid one.
parent de17deed
...@@ -1493,7 +1493,7 @@ static void priv_update_check_list_state_for_ready (NiceAgent *agent, NiceStream ...@@ -1493,7 +1493,7 @@ static void priv_update_check_list_state_for_ready (NiceAgent *agent, NiceStream
} }
} }
if (valid > 0) { if (nominated > 0) {
/* Only go to READY if no checks are left in progress. If there are /* Only go to READY if no checks are left in progress. If there are
* any that are kept, then this function will be called again when the * any that are kept, then this function will be called again when the
* conncheck tick timer finishes them all */ * conncheck tick timer finishes them all */
......
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