summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2017-11-22 12:10:50 +0100
committerThomas Haller <thaller@redhat.com>2017-11-22 12:35:37 +0100
commitc88f0b8f292f8f4affc7861ce9f407ff0d793e1c (patch)
tree19e5371d6d6ac69021033d1c33eb34a3161e22b5
parentd73bf640bc2c9facbb4ae13079bb3a17a813792e (diff)
downloadNetworkManager-c88f0b8f292f8f4affc7861ce9f407ff0d793e1c.tar.gz
policy: schedule autoactivation check after reset_autoconnect_all()
When changing the autoconnect blocked settings, we must trigger a recheck-all.
-rw-r--r--src/nm-policy.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nm-policy.c b/src/nm-policy.c
index 687c856ade..afc904fd7c 100644
--- a/src/nm-policy.c
+++ b/src/nm-policy.c
@@ -1463,8 +1463,10 @@ 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 (sleeping || !enabled) {
reset_autoconnect_all (self, NULL);
+ schedule_activate_all (self);
+ }
}
static void