diff options
-rw-r--r-- | libempathy/empathy-tp-roomlist.c | 7 |
1 files changed, 6 insertions, 1 deletions
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); |