aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-utils.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c
index 21b0599c8..3acd4707d 100644
--- a/libempathy/empathy-utils.c
+++ b/libempathy/empathy-utils.c
@@ -531,6 +531,11 @@ empathy_account_manager_get_accounts_connected (gboolean *connecting)
gboolean out_connected = FALSE;
manager = tp_account_manager_dup ();
+
+ if (G_UNLIKELY (!tp_account_manager_is_prepared (manager,
+ TP_ACCOUNT_MANAGER_FEATURE_CORE)))
+ g_critical (G_STRLOC ": %s called before AccountManager ready", G_STRFUNC);
+
accounts = tp_account_manager_get_valid_accounts (manager);
for (l = accounts; l != NULL; l = l->next)