]> git.0d.be Git - empathy.git/blobdiff - libempathy/empathy-contact-manager.c
contact_manager_status_changed_cb: ignore disconnected account
[empathy.git] / libempathy / empathy-contact-manager.c
index 53ccfbd63bdbc18e7742a15da4256624ef429871..ce77d273b96bc0b0f0f6f87a0d3853d68f4e0bf3 100644 (file)
@@ -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)) {