aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-contact-manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy/empathy-contact-manager.c')
-rw-r--r--libempathy/empathy-contact-manager.c4
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)) {