mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 02:10:09 +01:00
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:
parent
2b02eea1a4
commit
261a3924d3
1 changed files with 3 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue