aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-account.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy/empathy-account.c')
-rw-r--r--libempathy/empathy-account.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/libempathy/empathy-account.c b/libempathy/empathy-account.c
index 445576b63..914ae6141 100644
--- a/libempathy/empathy-account.c
+++ b/libempathy/empathy-account.c
@@ -899,16 +899,17 @@ _empathy_account_set_connection (EmpathyAccount *account,
error->message);
g_error_free (error);
}
-
- priv->connection_invalidated_id = g_signal_connect (priv->connection,
- "invalidated",
- G_CALLBACK (_empathy_account_connection_invalidated_cb),
- account);
-
- DEBUG ("Readying connection for %s", priv->unique_name);
- /* notify a change in the connection property when it's ready */
- tp_connection_call_when_ready (priv->connection,
- empathy_account_connection_ready_cb, account);
+ else
+ {
+ priv->connection_invalidated_id = g_signal_connect (priv->connection,
+ "invalidated",
+ G_CALLBACK (_empathy_account_connection_invalidated_cb), account);
+
+ DEBUG ("Readying connection for %s", priv->unique_name);
+ /* notify a change in the connection property when it's ready */
+ tp_connection_call_when_ready (priv->connection,
+ empathy_account_connection_ready_cb, account);
+ }
}
g_object_notify (G_OBJECT (account), "connection");