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:
@@ -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(
|
||||
|
Reference in New Issue
Block a user