summaryrefslogtreecommitdiff
path: root/agent/discovery.c
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2014-09-19 08:57:53 +0100
committerPhilip Withnall <philip.withnall@collabora.co.uk>2014-09-19 08:57:53 +0100
commite5fbdbe605b0acc74e259a1618e2fe2304becade (patch)
treecea9c3ee22cf663b2f778ef977d15fb581afa008 /agent/discovery.c
parentb80bc3a17fd78f8b665509cb193e876b2d16497c (diff)
downloadlibnice-e5fbdbe605b0acc74e259a1618e2fe2304becade.tar.gz
agent: Add names to timer GSources
Modify the agent_timeout_add_with_context() utility function to automatically add names to the timer GSources it creates. This makes them a little easier to identify when debugging.
Diffstat (limited to 'agent/discovery.c')
-rw-r--r--agent/discovery.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/agent/discovery.c b/agent/discovery.c
index b055807..c5d9220 100644
--- a/agent/discovery.c
+++ b/agent/discovery.c
@@ -1169,7 +1169,10 @@ void discovery_schedule (NiceAgent *agent)
/* step: run first iteration immediately */
gboolean res = priv_discovery_tick_unlocked (agent);
if (res == TRUE) {
- agent->discovery_timer_source = agent_timeout_add_with_context (agent, agent->timer_ta, priv_discovery_tick, agent);
+ agent->discovery_timer_source =
+ agent_timeout_add_with_context (agent,
+ "Candidate discovery tick", agent->timer_ta,
+ priv_discovery_tick, agent);
}
}
}