[empathy/mc5: 477/483] Don't hook up to invalidated when creating the connection failed
- From: Sjoerd Simons <sjoerds src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy/mc5: 477/483] Don't hook up to invalidated when creating the connection failed
- Date: Fri, 21 Aug 2009 17:22:21 +0000 (UTC)
commit 4b3de48f8648402437053f01296ff596cfdbf38a
Author: Sjoerd Simons <sjoerd simons collabora co uk>
Date: Fri Aug 21 17:14:55 2009 +0100
Don't hook up to invalidated when creating the connection failed
libempathy/empathy-account.c | 21 +++++++++++----------
1 files changed, 11 insertions(+), 10 deletions(-)
---
diff --git a/libempathy/empathy-account.c b/libempathy/empathy-account.c
index 445576b..914ae61 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");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]