mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-30 12:00:11 +01:00
platform: fix handling refresh-link delayed actions
Due to a bug, we would only handle one REFRESH_LINK delayed action and ignore the ones queued afterwards. Fixes:051cf8bbde(cherry picked from commiteee240ffe8)
This commit is contained in:
parent
3543cbdfc2
commit
bdbc3bbb7b
1 changed files with 1 additions and 1 deletions
|
|
@ -1622,7 +1622,7 @@ delayed_action_handle_one (NMPlatform *platform)
|
|||
|
||||
user_data = priv->delayed_action.list_refresh_link->pdata[0];
|
||||
g_ptr_array_remove_index_fast (priv->delayed_action.list_refresh_link, 0);
|
||||
if (priv->delayed_action.list_master_connected->len == 0)
|
||||
if (priv->delayed_action.list_refresh_link->len == 0)
|
||||
priv->delayed_action.flags &= ~DELAYED_ACTION_TYPE_REFRESH_LINK;
|
||||
nm_assert (_nm_utils_ptrarray_find_first (priv->delayed_action.list_refresh_link->pdata, priv->delayed_action.list_refresh_link->len, user_data) < 0);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue