From f2684964e27ae50e40b9708aeb5f46562b25df29 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 20 Apr 2010 14:27:52 +0200 Subject: iterate_on_channels: continue instead of returning if a channel doesn't match We are iterating on channels so we should check the remaining channels... --- libempathy/empathy-tp-contact-list.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libempathy') diff --git a/libempathy/empathy-tp-contact-list.c b/libempathy/empathy-tp-contact-list.c index 93742681a..f21979495 100644 --- a/libempathy/empathy-tp-contact-list.c +++ b/libempathy/empathy-tp-contact-list.c @@ -817,16 +817,16 @@ iterate_on_channels (EmpathyTpContactList *list, if (tp_strdiff (tp_asv_get_string (properties, TP_IFACE_CHANNEL ".ChannelType"), TP_IFACE_CHANNEL_TYPE_CONTACT_LIST)) - return; + continue; if (tp_asv_get_string (properties, TP_IFACE_CHANNEL ".TargetID") == NULL) - return; + continue; handle_type = tp_asv_get_uint32 (properties, TP_IFACE_CHANNEL ".TargetHandleType", NULL); if (handle_type != TP_HANDLE_TYPE_GROUP) - return; + continue; tp_contact_list_group_add_channel (list, path, properties); } -- cgit v1.2.3