[Telepathy-commits] [telepathy-mission-control/master] Don't reconnect if offline presence was requested

Alberto Mardegan alberto.mardegan at nokia.com
Tue Jan 13 07:34:24 PST 2009


---
 src/mcd-connection.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/mcd-connection.c b/src/mcd-connection.c
index 7899270..47fdbe6 100644
--- a/src/mcd-connection.c
+++ b/src/mcd-connection.c
@@ -1095,7 +1095,8 @@ static void proxy_destroyed (DBusGProxy *tp_conn, guint domain, gint code,
 	priv->capabilities_timer = 0;
     }
 
-    if (priv->auto_reconnect)
+    if (priv->auto_reconnect &&
+        priv->abort_reason != TP_CONNECTION_STATUS_REASON_REQUESTED)
     {
         /* we were disconnected by a network error or by a connection manager
          * crash (in the latter case, we get NoneSpecified as a reason): don't
-- 
1.5.6.5




More information about the Telepathy-commits mailing list