From 03ab1466bdf4d01a749ae7d35c416c8aa5e41c5d Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 16 May 2019 17:01:15 +0200 Subject: [PATCH] dhcp: use g_return_if_fail() instead of g_assert() in nm_dhcp_client_start_timeout() --- src/dhcp/nm-dhcp-client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dhcp/nm-dhcp-client.c b/src/dhcp/nm-dhcp-client.c index d494eff08e..359e3e6deb 100644 --- a/src/dhcp/nm-dhcp-client.c +++ b/src/dhcp/nm-dhcp-client.c @@ -476,8 +476,9 @@ nm_dhcp_client_start_timeout (NMDhcpClient *self) { NMDhcpClientPrivate *priv = NM_DHCP_CLIENT_GET_PRIVATE (self); + g_return_if_fail (priv->timeout_id == 0); + /* Set up a timeout on the transaction to kill it after the timeout */ - g_assert (priv->timeout_id == 0); if (priv->timeout == NM_DHCP_TIMEOUT_INFINITY) return;