[empathy] iterate_on_channels: continue instead of returning if a channel doesn't match
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] iterate_on_channels: continue instead of returning if a channel doesn't match
- Date: Tue, 20 Apr 2010 12:36:31 +0000 (UTC)
commit f2684964e27ae50e40b9708aeb5f46562b25df29
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Tue Apr 20 14:27:52 2010 +0200
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 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libempathy/empathy-tp-contact-list.c b/libempathy/empathy-tp-contact-list.c
index 9374268..f219794 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]