mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-27 00:00:38 +01:00
fixup! core: rework nm_policy_device_recheck_auto_activate_all_schedule()
This commit is contained in:
parent
10b2739322
commit
e8f78419b8
1 changed files with 6 additions and 0 deletions
|
|
@ -2594,6 +2594,12 @@ nm_policy_device_recheck_auto_activate_all_schedule(NMPolicy *self)
|
|||
const CList *tmp_lst;
|
||||
NMDevice *device;
|
||||
|
||||
if (nm_clear_g_source_inst(&priv->auto_activate_idle_source)) {
|
||||
/* reschedule the timer if it was pending already. The idea is that idle
|
||||
* activation is pushed back further. */
|
||||
priv->auto_activate_idle_source = nm_g_idle_add_source(_auto_activate_idle_cb, self);
|
||||
}
|
||||
|
||||
if (priv->auto_activate_recheck_all_blocked) {
|
||||
/* Optimize. Calling nm_policy_device_recheck_auto_activate_all_schedule() several
|
||||
* times should not require to iterate all devices multiple times.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue