Avoid mutex lock lock error by unnecessary checking.
Change-Id: I0734580de3cc22e67bedc17d7268c206b81d1012
DBG("remove secondary %s(%p). listcount(%d)",
e_client_util_name_get(ec), ec, eina_list_count(e_comp_wl->selection.secondary_list));
- if (e_comp_wl->selection.secondary_sent == e_comp_wl_client_surface_get(ec))
- e_comp_wl->selection.secondary_sent = NULL;
-
if (eina_list_count(e_comp_wl->selection.secondary_list) == 0)
{
eina_list_free(e_comp_wl->selection.secondary_list);
e_comp_wl->selection.secondary_list = NULL;
+ e_comp_wl->selection.secondary_sent = NULL;
}
}