summaryrefslogtreecommitdiff
path: root/telepathy-glib/contact-search.c
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-03-02 17:26:02 +0000
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-03-02 17:29:07 +0000
commit7d41f2a8ef8f25774bbf9918fcd5e798fe275705 (patch)
tree9aadb0ee401007cd026ad9ae69b492bd1e246488 /telepathy-glib/contact-search.c
parent30f35197ebb3c1109a2dd692627cbb664467fc8f (diff)
downloadtelepathy-glib-7d41f2a8ef8f25774bbf9918fcd5e798fe275705.tar.gz
Contact Search: only close channels if there was an error
Diffstat (limited to 'telepathy-glib/contact-search.c')
-rw-r--r--telepathy-glib/contact-search.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/telepathy-glib/contact-search.c b/telepathy-glib/contact-search.c
index 3a1d3da6e..5d0c71532 100644
--- a/telepathy-glib/contact-search.c
+++ b/telepathy-glib/contact-search.c
@@ -251,10 +251,10 @@ _create_search_channel_cb (GObject *source_object,
{
g_simple_async_result_set_from_error (self->priv->async_res, error);
g_error_free (error);
+ /* This function is safe if self->priv->channel is NULL. */
+ close_search_channel (self);
}
- /* This function is safe if self->priv->channel is NULL. */
- close_search_channel (self);
g_simple_async_result_complete (self->priv->async_res);
tp_clear_object (&self->priv->async_res);
}