summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/dhcp/nm-dhcp-manager.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dhcp/nm-dhcp-manager.c b/src/dhcp/nm-dhcp-manager.c
index fe843a2ce4..42a5eca971 100644
--- a/src/dhcp/nm-dhcp-manager.c
+++ b/src/dhcp/nm-dhcp-manager.c
@@ -208,6 +208,12 @@ client_start (NMDhcpManager *self,
/* Kill any old client instance */
client = get_client_for_ifindex (self, addr_family, ifindex);
if (client) {
+ /* FIXME: we cannot just call synchronously "stop()" and forget about the client.
+ * We need to wait for the client to be fully stopped because most/all clients
+ * cannot quit right away.
+ *
+ * FIXME(shutdown): also fix this during shutdown, to wait for all DHCP clients
+ * to be fully stopped. */
remove_client (self, client);
nm_dhcp_client_stop (client, FALSE);
g_object_unref (client);