[Telepathy] Get existing connection in clients

Dafydd Harries dafydd.harries at collabora.co.uk
Thu Jan 18 13:39:24 PST 2007

Ar 18/01/2007 am 22:30, ysgrifennodd Xavier Claessens:
> 1) RequestConnection returns the existing object if it's already
> connected. Currently if I try to connect an account that is already
> connected I get this error:
> * (gossip:6771): WARNING **: Connect() failed: Error acquiring bus name
> org.freedesktop.Telepathy.Connection.idle.irc.xclaesse_irc_freenode_net,
> The connection manager already has this connection active.

Why not just call RequestConnection and catch the error to determine whether
the connection exists? If you don't need the resulting connection object, you
can just call Disconnect() on it.


More information about the Telepathy mailing list