Commit 0e98e415 authored by George Kiagiadakis's avatar George Kiagiadakis
Browse files

config-policy: debug handling of endpoints

parent 40e4ce89
......@@ -382,9 +382,15 @@ links_table_handle_foreach (gpointer key, gpointer value, gpointer data)
/* Sort the link infos by role and creation time */
g_ptr_array_sort_with_data (link_infos, link_info_compare_func, target);
g_debug ("handling endpoints:");
/* Handle the first endpoint and also the ones with keep=true */
for (guint i = 0; i < link_infos->len; i++) {
struct link_info *li = g_ptr_array_index (link_infos, i);
g_debug (" %2u: %s:%d, keep:%d", i, wp_base_endpoint_get_name (li->ep),
li->stream_id, li->keep);
if (i == 0 || li->keep)
if (wp_config_policy_handle_pending_link (self, li, target))
self->endpoint_handled = li->ep == self->pending_endpoint;
......
Supports Markdown
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