Commit 58909775 authored by Olivier Crête's avatar Olivier Crête

Add prints

parent a249225f
......@@ -199,8 +199,18 @@ agent_unlock_and_emit (NiceAgent *agent)
g_queue_init (&agent->pending_signals);
g_mutex_unlock (&agent_mutex);
while ((sig = g_queue_pop_head (&queue))) {
GSignalQuery query;
g_signal_query(sig->signal_id, &query);
if (query.signal_id)
nice_debug("Agent %p: emitted %s which has %d handlers (not blocked: %d)",
agent,
query.signal_name,
g_signal_has_handler_pending(agent, sig->signal_id, 0, TRUE),
g_signal_has_handler_pending(agent, sig->signal_id, 0, FALSE));
else
nice_debug ("Agent: %p: invalid query in unlock", agent);
g_signal_emitv (sig->params, sig->signal_id, 0, NULL);
free_queued_signal (sig);
......
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