[empathy] Warn if accessing connection status before AM is ready
- From: Danielle Madeley <davyd src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy] Warn if accessing connection status before AM is ready
- Date: Tue, 10 Nov 2009 10:09:26 +0000 (UTC)
commit 920f6e2d9865b72baf76bff3ac26c6a26e260a03
Author: Danielle Madeley <danielle madeley collabora co uk>
Date: Tue Nov 10 08:17:55 2009 +1100
Warn if accessing connection status before AM is ready
libempathy/empathy-utils.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c
index 21b0599..3acd470 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]