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:
Beniamino Galvani 2016-01-22 15:19:06 +01:00
parent eadb0051dc
commit 936a70bf4a

View file

@ -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