summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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