gdm: ignore user-removed signals for untracked users

If we don't know about a user, we don't care if it goes away,
and we shouldn't try to remove it from the book keeping.

https://bugzilla.gnome.org/show_bug.cgi?id=647893
This commit is contained in:
Ray Strode 2011-05-24 22:15:10 -04:00
parent 6b2b3475c8
commit ff81659b9e

View File

@ -887,6 +887,13 @@ on_user_removed_in_accounts_service (DBusGProxy *proxy,
user = g_hash_table_lookup (manager->priv->users_by_object_path, object_path); user = g_hash_table_lookup (manager->priv->users_by_object_path, object_path);
if (user == NULL) {
g_debug ("GdmUserManager: ignoring untracked user %s", object_path);
return;
} else {
g_debug ("GdmUserManager: tracked user %s removed from accounts service", object_path);
}
manager->priv->new_users = g_slist_remove (manager->priv->new_users, user); manager->priv->new_users = g_slist_remove (manager->priv->new_users, user);
remove_user (manager, user); remove_user (manager, user);