mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-01 02:30:11 +01:00
Prevent double-exports
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4021 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
7466136be2
commit
17af879e9b
1 changed files with 2 additions and 0 deletions
|
|
@ -423,6 +423,8 @@ nm_exported_connection_register_object (NMExportedConnection *connection,
|
|||
g_return_if_fail (dbus_connection != NULL);
|
||||
|
||||
priv = NM_EXPORTED_CONNECTION_GET_PRIVATE (connection);
|
||||
/* Don't allow the connection to be exported twice */
|
||||
g_return_if_fail (nm_connection_get_path (priv->wrapped) == NULL);
|
||||
|
||||
path = g_strdup_printf ("%s/%u", NM_DBUS_PATH_SETTINGS, ec_counter++);
|
||||
nm_connection_set_path (priv->wrapped, path);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue