summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2016-01-22 15:19:06 +0100
committerBeniamino Galvani <bgalvani@redhat.com>2016-01-22 15:44:18 +0100
commit9f96e9d5128d72214cb32afd0fb729c8718ad8a4 (patch)
treecc2387f264522f5cc9411538c8d54c53ecbefd40
parentb85cff07c175723bc172ff737b6c483891d97df5 (diff)
downloadNetworkManager-bg/iptables-sharing-rules-bgo692673.tar.gz
manager: cleanup active connections upon exitbg/iptables-sharing-rules-bgo692673
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
-rw-r--r--src/nm-manager.c2
1 files changed, 2 insertions, 0 deletions
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