From: Xavier Claessens Date: Sun, 20 Apr 2008 19:57:05 +0000 (+0000) Subject: Do not crash on if ListChannels fails X-Git-Url: https://git.0d.be/?p=empathy.git;a=commitdiff_plain;h=9bb81d2d976d8bf388db0a91d87202928c4453f4 Do not crash on if ListChannels fails svn path=/trunk/; revision=1012 --- diff --git a/src/empathy-filter.c b/src/empathy-filter.c index 3a0834ac..0b2999b4 100644 --- a/src/empathy-filter.c +++ b/src/empathy-filter.c @@ -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));