[Telepathy-commits] [telepathy-idle/master] Bug 17430 Connections' object path etc. should contain uniquifying string

Jonathon Jongsma jonathon.jongsma at collabora.co.uk
Fri Feb 20 13:49:11 PST 2009


Add the hex value of the connection's memory address to the end fo the object
path as a uniquifier.
---
 src/idle-connection.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/idle-connection.c b/src/idle-connection.c
index 3418935..1e7929a 100644
--- a/src/idle-connection.c
+++ b/src/idle-connection.c
@@ -429,7 +429,7 @@ static void _iface_create_handle_repos(TpBaseConnection *self, TpHandleRepoIface
 static gchar *_iface_get_unique_connection_name(TpBaseConnection *self) {
 	IdleConnectionPrivate *priv = IDLE_CONNECTION_GET_PRIVATE(self);
 
-	return g_strdup_printf("%s@%s", priv->nickname, priv->server);
+	return g_strdup_printf("%s@%s%p", priv->nickname, priv->server, self);
 }
 
 static gboolean _finish_shutdown_idle_func(gpointer data) {
-- 
1.5.6.5



More information about the telepathy-commits mailing list