From 936a70bf4aa8608779b7e2ba2097d00698b15ef6 Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Fri, 22 Jan 2016 15:19:06 +0100 Subject: [PATCH] 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 e3a6ba6756620b5ed64459141567dd7a760e2c30) --- src/nm-manager.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nm-manager.c b/src/nm-manager.c index 26e2127354..0abae70554 100644 --- a/src/nm-manager.c +++ b/src/nm-manager.c @@ -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