Hi,<br><br>The similar issue I am also facing in my project. If an account is already loggedin in Connection manager, and by any reason the my implementation crash or somthing goes worng and I need to login same account again then CM return error that object already exist.
<br><br>I am also looking for some better solution because then there is no way then restart connection manager also.<br><br>-Regards<br>Naveen<br><br><div><span class="gmail_quote">On 1/19/07, <b class="gmail_sendername">
Xavier Claessens</b> <<a href="mailto:xclaesse@gmail.com">xclaesse@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On jeu, 2007-01-18 at 22:55 +0100, Xavier Claessens wrote:<br>> On jeu, 2007-01-18 at 21:39 +0000, Dafydd Harries wrote:<br>> > Ar 18/01/2007 am 22:30, ysgrifennodd Xavier Claessens:<br>> > > 1) RequestConnection returns the existing object if it's already
<br>> > > connected. Currently if I try to connect an account that is already<br>> > > connected I get this error:<br>> > ><br>> > > * (gossip:6771): WARNING **: Connect() failed: Error acquiring bus name
<br>> > > org.freedesktop.Telepathy.Connection.idle.irc.xclaesse_irc_freenode_net,<br>> > > The connection manager already has this connection active.<br>> ><br>> > Why not just call RequestConnection and catch the error to determine whether
<br>> > the connection exists? If you don't need the resulting connection object, you<br>> > can just call Disconnect() on it.<br>><br>> It can be a solution if all CM returns the same error. So there is three
<br>> solutions:<br>><br>> 3) Add in the spec a possible error on RequestConnection telling it's<br>> already connected.<br>><br><br>Hum after some thinking, return an error isn't that useful. It just
<br>tells the client that a connection exists but it doesn't says the<br>object's path on the bus.<br><br>Xavier.<br><br><br>_______________________________________________<br>Telepathy mailing list<br><a href="mailto:Telepathy@lists.freedesktop.org">
Telepathy@lists.freedesktop.org</a><br><a href="http://lists.freedesktop.org/mailman/listinfo/telepathy">http://lists.freedesktop.org/mailman/listinfo/telepathy</a><br><br><br><br></blockquote></div><br>