mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-30 02:40:11 +01:00
devices: flip the ordering of priv->slaves
Keep priv->slaves in the order that slaves were attached, rather than in reverse order. Among other things, this makes the errors from nm_device_master_check_slave_physical_port() more consistent.
This commit is contained in:
parent
0b2f4979b1
commit
1f22c8859a
1 changed files with 1 additions and 1 deletions
|
|
@ -1352,7 +1352,7 @@ nm_device_master_add_slave (NMDevice *dev, NMDevice *slave, gboolean configure)
|
|||
info->configure = configure;
|
||||
info->watch_id = g_signal_connect (slave, "state-changed",
|
||||
G_CALLBACK (slave_state_changed), dev);
|
||||
priv->slaves = g_slist_prepend (priv->slaves, info);
|
||||
priv->slaves = g_slist_append (priv->slaves, info);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue