mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-04 01:40:16 +01:00
core: only trigger recheck when something changes in activate_slave_connections()
We need to detect when nothing relevant changes, and shortcut doing things when they are unnecessary.
This commit is contained in:
parent
7e15b4d562
commit
6e229a852f
1 changed files with 2 additions and 3 deletions
|
|
@ -1827,9 +1827,8 @@ activate_slave_connections(NMPolicy *self, NMDevice *device)
|
|||
continue;
|
||||
|
||||
if (!internal_activation) {
|
||||
nm_manager_devcon_autoconnect_retries_reset(priv->manager, NULL, sett_conn);
|
||||
/* we cannot know if they changed or not, so considering we did a reset, let's consider they changed. */
|
||||
changed = TRUE;
|
||||
if (nm_manager_devcon_autoconnect_retries_reset(priv->manager, NULL, sett_conn))
|
||||
changed = TRUE;
|
||||
}
|
||||
/* unblock the devices associated with that connection */
|
||||
if (nm_manager_devcon_autoconnect_blocked_reason_set(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue