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

agent: warn when reaching max number of turn and local addresses

parent e7aaa5dc
...@@ -2841,7 +2841,7 @@ nice_agent_set_relay_info(NiceAgent *agent, ...@@ -2841,7 +2841,7 @@ nice_agent_set_relay_info(NiceAgent *agent,
length = g_list_length (component->turn_servers); length = g_list_length (component->turn_servers);
if (length == NICE_CANDIDATE_MAX_TURN_SERVERS) { if (length == NICE_CANDIDATE_MAX_TURN_SERVERS) {
nice_debug ("Agent %p : cannot have more than %d turn servers.", g_warning ("Agent %p : cannot have more than %d turn servers.",
agent, length); agent, length);
ret = FALSE; ret = FALSE;
goto done; goto done;
...@@ -3118,7 +3118,7 @@ nice_agent_gather_candidates ( ...@@ -3118,7 +3118,7 @@ nice_agent_gather_candidates (
length = g_slist_length (local_addresses); length = g_slist_length (local_addresses);
if (length > NICE_CANDIDATE_MAX_LOCAL_ADDRESSES) { if (length > NICE_CANDIDATE_MAX_LOCAL_ADDRESSES) {
nice_debug ("Agent %p : cannot have more than %d local addresses.", g_warning ("Agent %p : cannot have more than %d local addresses.",
agent, NICE_CANDIDATE_MAX_LOCAL_ADDRESSES); agent, NICE_CANDIDATE_MAX_LOCAL_ADDRESSES);
} }
......
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