summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2014-10-16 13:52:11 -0400
committerRay Strode <rstrode@redhat.com>2014-10-16 13:52:11 -0400
commit952af57d5ef25ec3895408256f6df165a9eb2f7e (patch)
tree5c48520d928cb103dc6ae77f613081832f8bc3c8
parent39f9b60c0477afebc6e66d7021de87aca1c9e2ad (diff)
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.
-rw-r--r--src/daemon.c3
1 files changed, 1 insertions, 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);
}