]> git.0d.be Git - empathy.git/commitdiff
Do not crash on if ListChannels fails
authorXavier Claessens <xclaesse@src.gnome.org>
Sun, 20 Apr 2008 19:57:05 +0000 (19:57 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Sun, 20 Apr 2008 19:57:05 +0000 (19:57 +0000)
svn path=/trunk/; revision=1012

src/empathy-filter.c

index 3a0834ac69763f482b34a33a01a2dbab04a14348..0b2999b4ebac111e6be1168c7e1da3b9839a4b65 100644 (file)
@@ -785,6 +785,12 @@ filter_connection_list_channels_cb (TpConnection    *connection,
 {
        guint i;
 
+       if (error) {
+               empathy_debug (DEBUG_DOMAIN, "Error listing channels: %s",
+                              error->message);
+               return;
+       }
+
        g_object_set_data (G_OBJECT (connection), "had-channels",
                           GUINT_TO_POINTER (1));