From 9bb81d2d976d8bf388db0a91d87202928c4453f4 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Sun, 20 Apr 2008 19:57:05 +0000 Subject: Do not crash on if ListChannels fails svn path=/trunk/; revision=1012 --- src/empathy-filter.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/empathy-filter.c b/src/empathy-filter.c index 3a0834ac6..0b2999b4e 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)); -- cgit v1.2.3