diff options
| author | Thomas Haller <thaller@redhat.com> | 2017-11-29 09:37:05 +0100 |
|---|---|---|
| committer | Thomas Haller <thaller@redhat.com> | 2017-11-29 10:15:02 +0100 |
| commit | 88549b031a59925312825b5f051c40a37420347b (patch) | |
| tree | b8d334466971d01128942a73f3edf20d61a727dd /src/nm-policy.c | |
| parent | 249aff6349f6ff9068fd3168f7a75ef445b46e1f (diff) | |
| download | NetworkManager-88549b031a59925312825b5f051c40a37420347b.tar.gz | |
policy: don't schedule_activate_all() when going to sleep
This was added by cfb2af1df2f596cf1bb3653d091dac915db90387, but it's
wrong. Here we reset the autoconnect-blocked-reasons when going to sleep,
not when waking up.
Diffstat (limited to 'src/nm-policy.c')
| -rw-r--r-- | src/nm-policy.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nm-policy.c b/src/nm-policy.c index dd6e7e217e..5a0b148cd5 100644 --- a/src/nm-policy.c +++ b/src/nm-policy.c @@ -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 |
