[telepathy-glib/master] account{, -manager}: return FALSE in _is_ready if the proxy is invalidated

Jonny Lamb jonny.lamb at collabora.co.uk
Thu Sep 24 06:27:41 PDT 2009


Signed-off-by: Jonny Lamb <jonny.lamb at collabora.co.uk>
---
 telepathy-glib/account-manager.c |    3 +++
 telepathy-glib/account.c         |    3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/telepathy-glib/account-manager.c b/telepathy-glib/account-manager.c
index 0f6fca5..406afdc 100644
--- a/telepathy-glib/account-manager.c
+++ b/telepathy-glib/account-manager.c
@@ -1335,6 +1335,9 @@ tp_account_manager_is_ready (TpAccountManager *manager,
 {
   TpAccountManagerFeature *f;
 
+  if (tp_proxy_get_invalidated (manager) != NULL)
+    return FALSE;
+
   f = _tp_account_manager_get_feature (manager, feature);
 
   if (f == NULL)
diff --git a/telepathy-glib/account.c b/telepathy-glib/account.c
index b25a7a2..c5dc4ae 100644
--- a/telepathy-glib/account.c
+++ b/telepathy-glib/account.c
@@ -2588,6 +2588,9 @@ tp_account_is_ready (TpAccount *account,
 {
   TpAccountFeature *f;
 
+  if (tp_proxy_get_invalidated (account) != NULL)
+    return FALSE;
+
   f = _tp_account_get_feature (account, feature);
 
   if (f == NULL)
-- 
1.5.6.5




More information about the telepathy-commits mailing list