Commit f6646661 authored by Petr Mrázek's avatar Petr Mrázek Committed by David Zeuthen

Bug 29051 – Configuration reload on every query

Set has_data to true after the data is loaded to prevent excessive
reloading of config files.
Signed-off-by: 's avatarDavid Zeuthen <davidz@redhat.com>
parent 28e485ca
......@@ -386,6 +386,7 @@ polkit_backend_config_source_ensure (PolkitBackendConfigSource *source)
}
source->priv->key_files = g_list_reverse (source->priv->key_files);
source->priv->has_data = TRUE;
out:
g_list_foreach (files, (GFunc) g_object_unref, NULL);
......
......@@ -641,6 +641,8 @@ polkit_backend_local_authorization_store_ensure (PolkitBackendLocalAuthorization
g_free (filename);
}
store->priv->has_data = TRUE;
out:
g_list_foreach (files, (GFunc) g_object_unref, NULL);
g_list_free (files);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment