mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-04-20 18:50:38 +02:00
ifcfg-rh: ensure connection is still alive for the removal signal
This commit is contained in:
parent
37845af954
commit
c2ca4298fa
1 changed files with 2 additions and 0 deletions
|
|
@ -219,8 +219,10 @@ remove_connection (SCPluginIfcfg *self, NMIfcfgConnection *connection)
|
|||
managed = !!nm_ifcfg_connection_get_unmanaged_spec (connection);
|
||||
path = nm_ifcfg_connection_get_path (connection);
|
||||
|
||||
g_object_ref (connection);
|
||||
g_hash_table_remove (priv->connections, path);
|
||||
g_signal_emit_by_name (connection, NM_SYSCONFIG_CONNECTION_REMOVED);
|
||||
g_object_unref (connection);
|
||||
|
||||
/* Emit unmanaged changes _after_ removing the connection */
|
||||
if (managed == FALSE)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue