From 39926c20086ccdaf5e997d11dc30460c581ceae5 Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Wed, 15 Jun 2011 12:26:26 +0100 Subject: [PATCH] Check for the specific error code when reconnecting The NetworkError connection status maps to several TpErrors, so check the error code to decide whether we should automatically reconnect. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=37844 --- src/mcd-connection.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/mcd-connection.c b/src/mcd-connection.c index 3aaf37c..660ee6a 100644 --- a/src/mcd-connection.c +++ b/src/mcd-connection.c @@ -1220,7 +1220,7 @@ mcd_connection_invalidated_cb (TpConnection *tp_conn, priv->connected = FALSE; if ((priv->abort_reason == TP_CONNECTION_STATUS_REASON_NONE_SPECIFIED || - priv->abort_reason == TP_CONNECTION_STATUS_REASON_NETWORK_ERROR) && + code == TP_ERROR_NETWORK_ERROR) && priv->probation_drop_count <= PROBATION_MAX_DROPPED) { /* we were disconnected by a network error or by a connection manager -- 1.7.5.4