From: Xavier Claessens Date: Tue, 11 Mar 2008 12:22:14 +0000 (+0000) Subject: Set self handle to 0 when connection is invalidated X-Git-Url: https://git.0d.be/?p=empathy.git;a=commitdiff_plain;h=3a8381dea1650263ba14feb92ffe1848cd4699b6 Set self handle to 0 when connection is invalidated svn path=/trunk/; revision=743 --- diff --git a/libempathy/empathy-tp-contact-factory.c b/libempathy/empathy-tp-contact-factory.c index 7ec56a3a..cdd98037 100644 --- a/libempathy/empathy-tp-contact-factory.c +++ b/libempathy/empathy-tp-contact-factory.c @@ -657,11 +657,11 @@ tp_contact_factory_connection_invalidated_cb (EmpathyTpContactFactory *tp_factor 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); - } @@ -760,7 +760,6 @@ tp_contact_factory_status_updated (EmpathyTpContactFactory *tp_factory) if (priv->connection) { /* We already have our connection object */ - g_object_unref (tp_conn); return; }