dhcp: use g_return_if_fail() instead of g_assert() in nm_dhcp_client_start_timeout()

This commit is contained in:
Thomas Haller 2019-05-16 17:01:15 +02:00
parent c307f07207
commit 03ab1466bd

View file

@ -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;