device: prepend pending actions list

The order doesn't matter, so prepend instead of append new items
to the pending-actions list.
This commit is contained in:
Thomas Haller 2017-02-02 12:09:48 +01:00
parent 3bc1e02adf
commit e347d96596

View file

@ -11272,7 +11272,7 @@ nm_device_add_pending_action (NMDevice *self, const char *action, gboolean asser
count++;
}
priv->pending_actions = g_slist_append (priv->pending_actions, (char *) action);
priv->pending_actions = g_slist_prepend (priv->pending_actions, (char *) action);
count++;
_LOGD (LOGD_DEVICE, "add_pending_action (%d): '%s'", count, action);