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> &lt;<a href="mailto:xclaesse@gmail.com">xclaesse@gmail.com</a>&gt; 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>&gt; On jeu, 2007-01-18 at 21:39 +0000, Dafydd Harries wrote:<br>&gt; &gt; Ar 18/01/2007 am 22:30, ysgrifennodd Xavier Claessens:<br>&gt; &gt; &gt; 1) RequestConnection returns the existing object if it&#39;s already
<br>&gt; &gt; &gt; connected. Currently if I try to connect an account that is already<br>&gt; &gt; &gt; connected I get this error:<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; * (gossip:6771): WARNING **: Connect() failed: Error acquiring bus name
<br>&gt; &gt; &gt; org.freedesktop.Telepathy.Connection.idle.irc.xclaesse_irc_freenode_net,<br>&gt; &gt; &gt; The connection manager already has this connection active.<br>&gt; &gt;<br>&gt; &gt; Why not just call RequestConnection and catch the error to determine whether
<br>&gt; &gt; the connection exists? If you don&#39;t need the resulting connection object, you<br>&gt; &gt; can just call Disconnect() on it.<br>&gt;<br>&gt; It can be a solution if all CM returns the same error. So there is three
<br>&gt; solutions:<br>&gt;<br>&gt; 3) Add in the spec a possible error on RequestConnection telling it&#39;s<br>&gt; already connected.<br>&gt;<br><br>Hum after some thinking, return an error isn&#39;t that useful. It just
<br>tells the client that a connection exists but it doesn&#39;t says the<br>object&#39;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>