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:
Thomas Haller
2023-04-28 13:03:18 +02:00
parent 7e15b4d562
commit 6e229a852f

View File

@@ -1827,8 +1827,7 @@ activate_slave_connections(NMPolicy *self, NMDevice *device)
continue; continue;
if (!internal_activation) { if (!internal_activation) {
nm_manager_devcon_autoconnect_retries_reset(priv->manager, NULL, sett_conn); if (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; changed = TRUE;
} }
/* unblock the devices associated with that connection */ /* unblock the devices associated with that connection */