diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-11-30 22:11:47 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-11-30 22:11:47 +0800 |
commit | 8d21537a22e1e4a1e6224d5e70190e0be2ef9a40 (patch) | |
tree | 2a8f59258115c5729b280a0d31abbb7fecb5519b /libempathy/empathy-contact-manager.c | |
parent | 75bbe2b4d9e2dfbc0706fcad8bc77cae2579dfa0 (diff) | |
download | gsoc2013-empathy-8d21537a22e1e4a1e6224d5e70190e0be2ef9a40.tar gsoc2013-empathy-8d21537a22e1e4a1e6224d5e70190e0be2ef9a40.tar.gz gsoc2013-empathy-8d21537a22e1e4a1e6224d5e70190e0be2ef9a40.tar.bz2 gsoc2013-empathy-8d21537a22e1e4a1e6224d5e70190e0be2ef9a40.tar.lz gsoc2013-empathy-8d21537a22e1e4a1e6224d5e70190e0be2ef9a40.tar.xz gsoc2013-empathy-8d21537a22e1e4a1e6224d5e70190e0be2ef9a40.tar.zst gsoc2013-empathy-8d21537a22e1e4a1e6224d5e70190e0be2ef9a40.zip |
contact_manager_status_changed_cb: ignore disconnected account
There is no point to start tracking an account which is about to be removed.
Furthemore, this avoid to re-add previoulsy invalidated connections (#603361).
Diffstat (limited to 'libempathy/empathy-contact-manager.c')
-rw-r--r-- | libempathy/empathy-contact-manager.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libempathy/empathy-contact-manager.c b/libempathy/empathy-contact-manager.c index 53ccfbd63..ce77d273b 100644 --- a/libempathy/empathy-contact-manager.c +++ b/libempathy/empathy-contact-manager.c @@ -144,6 +144,10 @@ contact_manager_status_changed_cb (TpAccount *account, EmpathyTpContactList *list; TpConnection *connection; + if (new_status == TP_CONNECTION_STATUS_DISCONNECTED) + /* No point to start tracking a connection which is about to die */ + return; + connection = tp_account_get_connection (account); if (connection == NULL || g_hash_table_lookup (priv->lists, connection)) { |