mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 03:38:09 +02:00
dhcp: use g_return_if_fail() instead of g_assert() in nm_dhcp_client_start_timeout()
This commit is contained in:
parent
c307f07207
commit
03ab1466bd
1 changed files with 2 additions and 1 deletions
|
|
@ -476,8 +476,9 @@ nm_dhcp_client_start_timeout (NMDhcpClient *self)
|
||||||
{
|
{
|
||||||
NMDhcpClientPrivate *priv = NM_DHCP_CLIENT_GET_PRIVATE (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 */
|
/* 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)
|
if (priv->timeout == NM_DHCP_TIMEOUT_INFINITY)
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue