]> git.0d.be Git - empathy.git/commitdiff
Set self handle to 0 when connection is invalidated
authorXavier Claessens <xclaesse@src.gnome.org>
Tue, 11 Mar 2008 12:22:14 +0000 (12:22 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Tue, 11 Mar 2008 12:22:14 +0000 (12:22 +0000)
svn path=/trunk/; revision=743

libempathy/empathy-tp-contact-factory.c

index 7ec56a3af56ded1fce7b6d6a13817c80534f6a6e..cdd9803720aa397cca583463f56ecd3adde5d5e2 100644 (file)
@@ -657,11 +657,11 @@ tp_contact_factory_connection_invalidated_cb (EmpathyTpContactFactory *tp_factor
        g_object_unref (priv->connection);
        priv->connection = NULL;
        priv->ready = FALSE;
        g_object_unref (priv->connection);
        priv->connection = NULL;
        priv->ready = FALSE;
+       priv->self_handle = 0;
 
        g_list_foreach (priv->contacts,
                        tp_contact_factory_disconnect_contact_foreach,
                        tp_factory);
 
        g_list_foreach (priv->contacts,
                        tp_contact_factory_disconnect_contact_foreach,
                        tp_factory);
-
 }
 
 
 }
 
 
@@ -760,7 +760,6 @@ tp_contact_factory_status_updated (EmpathyTpContactFactory *tp_factory)
 
        if (priv->connection) {
                /* We already have our connection object */
 
        if (priv->connection) {
                /* We already have our connection object */
-               g_object_unref (tp_conn);
                return;
        }
 
                return;
        }