mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 03:30:09 +01:00
device: make some asserts less harsh
We're terrible programmers, but we don't need anyone to notice!
This commit is contained in:
parent
90beb7689a
commit
c2ceacb419
1 changed files with 4 additions and 4 deletions
|
|
@ -9069,10 +9069,10 @@ nm_device_start_ip_check (NMDevice *self)
|
|||
* first IP method completes. Any subsequently completing IP method doesn't
|
||||
* get checked.
|
||||
*/
|
||||
g_assert (!priv->gw_ping.watch);
|
||||
g_assert (!priv->gw_ping.timeout);
|
||||
g_assert (!priv->gw_ping.pid);
|
||||
g_assert (priv->ip4_state == IP_DONE || priv->ip6_state == IP_DONE);
|
||||
g_return_if_fail (!priv->gw_ping.watch);
|
||||
g_return_if_fail (!priv->gw_ping.timeout);
|
||||
g_return_if_fail (!priv->gw_ping.pid);
|
||||
g_return_if_fail (priv->ip4_state == IP_DONE || priv->ip6_state == IP_DONE);
|
||||
|
||||
connection = nm_device_get_applied_connection (self);
|
||||
g_assert (connection);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue