mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-07 09:50:28 +01:00
manager: export the VPN connections when activating them
The vpn manager assumes it has a DBus path already.
This commit is contained in:
parent
700061f270
commit
7209356c4f
1 changed files with 4 additions and 3 deletions
|
|
@ -2550,13 +2550,14 @@ _internal_activate_vpn (NMManager *self, NMActiveConnection *active, GError **er
|
|||
|
||||
g_assert (NM_IS_VPN_CONNECTION (active));
|
||||
|
||||
nm_exported_object_export (NM_EXPORTED_OBJECT (active));
|
||||
success = nm_vpn_manager_activate_connection (NM_MANAGER_GET_PRIVATE (self)->vpn_manager,
|
||||
NM_VPN_CONNECTION (active),
|
||||
error);
|
||||
if (success) {
|
||||
nm_exported_object_export (NM_EXPORTED_OBJECT (active));
|
||||
if (success)
|
||||
g_object_notify (G_OBJECT (self), NM_MANAGER_ACTIVE_CONNECTIONS);
|
||||
}
|
||||
else
|
||||
nm_exported_object_unexport (NM_EXPORTED_OBJECT (active));
|
||||
return success;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue