From 952af57d5ef25ec3895408256f6df165a9eb2f7e Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Thu, 16 Oct 2014 13:52:11 -0400 Subject: daemon: close up ListCachedUsers race at start up if accountsservice is activated by the ListCachedUsers call, then the call may get processed before the list of users is loaded. This commit closes the race by synchronously loading the list of users at start up. --- src/daemon.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/daemon.c b/src/daemon.c index e55ea9e..01afd07 100644 --- a/src/daemon.c +++ b/src/daemon.c @@ -537,8 +537,7 @@ daemon_init (Daemon *daemon) daemon->priv->gdm_monitor = setup_monitor (daemon, PATH_GDM_CUSTOM, on_gdm_monitor_changed); - - queue_reload_users (daemon); + reload_users_timeout (daemon); queue_reload_autologin (daemon); } -- cgit v1.2.3