]> git.0d.be Git - empathy.git/commitdiff
Don't try to close channels thrice.
authorWill Thompson <will.thompson@collabora.co.uk>
Thu, 25 Feb 2010 12:30:56 +0000 (12:30 +0000)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 25 Feb 2010 18:08:48 +0000 (18:08 +0000)
Fixes: #611071
libempathy/empathy-tp-chat.c

index a7f23b2f51ffb05beefca56778d66af7f430317a..cba102add5e0423bc2273fd5d45585381c5489ad 100644 (file)
@@ -1828,13 +1828,17 @@ empathy_tp_chat_leave (EmpathyTpChat *self)
        GArray *array;
 
        if (!tp_proxy_has_interface_by_id (priv->channel,
-               TP_IFACE_QUARK_CHANNEL_INTERFACE_GROUP))
+               TP_IFACE_QUARK_CHANNEL_INTERFACE_GROUP)) {
                empathy_tp_chat_close (self);
+               return;
+       }
 
        self_handle = tp_channel_group_get_self_handle (priv->channel);
-       if (self_handle == 0)
+       if (self_handle == 0) {
                /* we are not member of the channel */
                empathy_tp_chat_close (self);
+               return;
+       }
 
        array = g_array_sized_new (FALSE, FALSE, sizeof (TpHandle), 1);
        g_array_insert_val (array, 0, self_handle);