remote-settings: Mark service as running when using private bus

When using a private bus connection, the service is never marked
as running when settings are initialized asynchronously. Successfully
opening a socket in NM's runtime directory should already imply
a running service, so just mark it as such (as we already do in
the synchronous path).
This commit is contained in:
Florian Müllner
2014-10-17 01:04:27 +02:00
committed by Dan Winship
parent 2b02eea1a4
commit 261a3924d3

View File

@@ -1363,9 +1363,10 @@ init_async (GAsyncInitable *initable, int io_priority,
init_data->result = g_simple_async_result_new (G_OBJECT (initable), callback,
user_data, init_async);
if (priv->private_bus)
if (priv->private_bus) {
priv->service_running = TRUE;
init_get_properties (init_data);
else {
} else {
/* Check if NM is running */
dbus_g_proxy_begin_call (priv->dbus_proxy, "NameHasOwner",
init_async_got_manager_running,