diff options
author | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-08-22 00:14:55 +0800 |
---|---|---|
committer | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-08-22 00:14:55 +0800 |
commit | 4b3de48f8648402437053f01296ff596cfdbf38a (patch) | |
tree | 7d72d95d771e99ea4152160ab0e485f4d911ede6 /libempathy | |
parent | 0f736265600a180423b1640841923f560fba70c2 (diff) | |
download | gsoc2013-empathy-4b3de48f8648402437053f01296ff596cfdbf38a.tar gsoc2013-empathy-4b3de48f8648402437053f01296ff596cfdbf38a.tar.gz gsoc2013-empathy-4b3de48f8648402437053f01296ff596cfdbf38a.tar.bz2 gsoc2013-empathy-4b3de48f8648402437053f01296ff596cfdbf38a.tar.lz gsoc2013-empathy-4b3de48f8648402437053f01296ff596cfdbf38a.tar.xz gsoc2013-empathy-4b3de48f8648402437053f01296ff596cfdbf38a.tar.zst gsoc2013-empathy-4b3de48f8648402437053f01296ff596cfdbf38a.zip |
Don't hook up to invalidated when creating the connection failed
Diffstat (limited to 'libempathy')
-rw-r--r-- | 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 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"); |