[Telepathy-commits] [telepathy-mission-control/master] Check for errors on callback return
Alberto Mardegan
alberto.mardegan at nokia.com
Fri Dec 5 00:04:19 PST 2008
---
src/mcd-connection.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/mcd-connection.c b/src/mcd-connection.c
index 345ec33..3e1e071 100644
--- a/src/mcd-connection.c
+++ b/src/mcd-connection.c
@@ -1284,6 +1284,12 @@ static void get_all_requests_cb (TpProxy *proxy, GHashTable *properties,
GValue *value;
guint i;
+ if (error)
+ {
+ g_warning ("%s got error: %s", G_STRFUNC, error->message);
+ return;
+ }
+
value = g_hash_table_lookup (properties, "Channels");
if (!G_VALUE_HOLDS (value, TP_ARRAY_TYPE_CHANNEL_DETAILS_LIST))
{
--
1.5.6.5
More information about the Telepathy-commits
mailing list