mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 05:10:09 +01:00
policy: don't schedule_activate_all() when going to sleep
This was added bycfb2af1df2, but it's wrong. Here we reset the autoconnect-blocked-reasons when going to sleep, not when waking up. (cherry picked from commit88549b031a)
This commit is contained in:
parent
e4f042f9bf
commit
6c22f99219
1 changed files with 2 additions and 4 deletions
|
|
@ -1465,10 +1465,8 @@ sleeping_changed (NMManager *manager, GParamSpec *pspec, gpointer user_data)
|
|||
g_object_get (G_OBJECT (manager), NM_MANAGER_NETWORKING_ENABLED, &enabled, NULL);
|
||||
|
||||
/* Reset retries on all connections so they'll checked on wakeup */
|
||||
if (sleeping || !enabled) {
|
||||
if (reset_autoconnect_all (self, NULL, FALSE))
|
||||
schedule_activate_all (self);
|
||||
}
|
||||
if (sleeping || !enabled)
|
||||
reset_autoconnect_all (self, NULL, FALSE);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue