[telepathy-glib/master] account-manager: only remove account if the object actually was removed

Jonny Lamb jonny.lamb at collabora.co.uk
Mon Sep 28 02:17:01 PDT 2009


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

diff --git a/telepathy-glib/account-manager.c b/telepathy-glib/account-manager.c
index ae61c22..5dd5520 100644
--- a/telepathy-glib/account-manager.c
+++ b/telepathy-glib/account-manager.c
@@ -897,7 +897,7 @@ _tp_account_manager_account_invalidated_cb (TpProxy *proxy,
   TpAccount *account = TP_ACCOUNT (proxy);
 
   /* We only want to deal with accounts being removed here. */
-  if (code != TP_DBUS_ERROR_OBJECT_REMOVED)
+  if (domain != TP_DBUS_ERRORS || code != TP_DBUS_ERROR_OBJECT_REMOVED)
     return;
 
   g_object_ref (account);
-- 
1.5.6.5




More information about the telepathy-commits mailing list