From ac12cfb37ffa241f5d81decb06467d42fc2550dd Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Tue, 15 Jul 2008 13:23:09 +0000 Subject: If InspectHandles fails print a debug message and return. svn path=/trunk/; revision=1239 --- libempathy/empathy-tp-roomlist.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libempathy') diff --git a/libempathy/empathy-tp-roomlist.c b/libempathy/empathy-tp-roomlist.c index eb87438b5..e73f6cb7a 100644 --- a/libempathy/empathy-tp-roomlist.c +++ b/libempathy/empathy-tp-roomlist.c @@ -91,7 +91,12 @@ tp_roomlist_inspect_handles_cb (TpConnection *connection, { GSList *chatrooms = user_data; - while (*names) { + if (error != NULL) { + DEBUG ("Error: %s", error->message); + return; + } + + while (*names != NULL) { EmpathyChatroom *chatroom = chatrooms->data; empathy_chatroom_set_room (chatroom, *names); -- cgit v1.2.3