]> git.0d.be Git - empathy.git/commitdiff
Do not close the channel if the channel is invalidated
authorXavier Claessens <xclaesse@src.gnome.org>
Tue, 11 Mar 2008 12:22:58 +0000 (12:22 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Tue, 11 Mar 2008 12:22:58 +0000 (12:22 +0000)
svn path=/trunk/; revision=767

libempathy/empathy-tp-chat.c

index 3a2f71df16e557e5bfed32db49e7b0156f0dcd3d..141c20ffecf1659ff14453230c255c5f437ca05a 100644 (file)
@@ -467,7 +467,7 @@ tp_chat_finalize (GObject *object)
 {
        EmpathyTpChatPriv *priv = GET_PRIV (object);
 
-       if (priv->acknowledge) {
+       if (priv->acknowledge && priv->channel) {
                empathy_debug (DEBUG_DOMAIN, "Closing channel...");
                tp_cli_channel_call_close (priv->channel, -1,
                                           tp_chat_async_cb,