From 9f96e9d5128d72214cb32afd0fb729c8718ad8a4 Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Fri, 22 Jan 2016 15:19:06 +0100 Subject: 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 --- src/nm-manager.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nm-manager.c b/src/nm-manager.c index c2b4e531ab..f647c8f9e4 100644 --- a/src/nm-manager.c +++ b/src/nm-manager.c @@ -4418,6 +4418,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 -- cgit v1.2.1