[Telepathy-commits] [telepathy-glib/master] BaseConnection: don't change self_handle if the new handle is the same

Will Thompson will.thompson at collabora.co.uk
Fri Aug 29 03:46:14 PDT 2008


---
 telepathy-glib/base-connection.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/telepathy-glib/base-connection.c b/telepathy-glib/base-connection.c
index 44a9ed8..403ae98 100644
--- a/telepathy-glib/base-connection.c
+++ b/telepathy-glib/base-connection.c
@@ -222,6 +222,9 @@ tp_base_connection_set_property (GObject      *object,
         if (self->status == TP_CONNECTION_STATUS_CONNECTED)
           g_return_if_fail (new_self_handle != 0);
 
+        if (self->self_handle == new_self_handle)
+          return;
+
         tp_handle_unref (priv->handles[TP_HANDLE_TYPE_CONTACT],
             self->self_handle);
         self->self_handle = new_self_handle;
-- 
1.5.6.3




More information about the Telepathy-commits mailing list