mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-31 03:10:10 +01:00
manager: cleanup active connections upon exit
When connection sharing is enabled, the removal of iptables rules is
delegated to the NMActRequest destructor; but for this to work it is
required that the object is properly dereferenced upon NM termination.
Clean up the active connections which are in DEACTIVATED state when
quitting, so that they are unexported and destroyed.
https://bugzilla.gnome.org/show_bug.cgi?id=692673
(cherry picked from commit e3a6ba6756)
This commit is contained in:
parent
eadb0051dc
commit
936a70bf4a
1 changed files with 2 additions and 0 deletions
|
|
@ -4235,6 +4235,8 @@ nm_manager_stop (NMManager *self)
|
|||
/* Remove all devices */
|
||||
while (priv->devices)
|
||||
remove_device (self, NM_DEVICE (priv->devices->data), TRUE, TRUE);
|
||||
|
||||
_active_connection_cleanup (self);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue