From eee240ffe82d1cf4e3e84688a37fbdc215c119d0 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Mon, 14 Sep 2015 16:40:51 +0200 Subject: [PATCH] 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: 051cf8bbde9b73cdb3718be94e78237758b451ff --- src/platform/nm-linux-platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c index d90db5a5c..78f5d2674 100644 --- a/src/platform/nm-linux-platform.c +++ b/src/platform/nm-linux-platform.c @@ -1619,7 +1619,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);