aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanielle Madeley <danielle.madeley@collabora.co.uk>2009-11-10 05:17:55 +0800
committerDanielle Madeley <danielle.madeley@collabora.co.uk>2009-11-10 05:25:20 +0800
commit920f6e2d9865b72baf76bff3ac26c6a26e260a03 (patch)
tree868c6924ad86c5d751c6d4be2ce43d15cb69843f
parent2ae61d037649fc6206b5aa47c9722e7ef24ffb02 (diff)
downloadgsoc2013-empathy-920f6e2d9865b72baf76bff3ac26c6a26e260a03.tar
gsoc2013-empathy-920f6e2d9865b72baf76bff3ac26c6a26e260a03.tar.gz
gsoc2013-empathy-920f6e2d9865b72baf76bff3ac26c6a26e260a03.tar.bz2
gsoc2013-empathy-920f6e2d9865b72baf76bff3ac26c6a26e260a03.tar.lz
gsoc2013-empathy-920f6e2d9865b72baf76bff3ac26c6a26e260a03.tar.xz
gsoc2013-empathy-920f6e2d9865b72baf76bff3ac26c6a26e260a03.tar.zst
gsoc2013-empathy-920f6e2d9865b72baf76bff3ac26c6a26e260a03.zip
Warn if accessing connection status before AM is ready
-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)