From 0c0e8d1961268c8d78be18ff6123066e6994b78c Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 22 Nov 2017 11:02:06 +0100 Subject: [PATCH] core/trivial: add code comment (cherry picked from commit 1f3f142fedb7e2414032b14ed9240f6f9e880667) --- src/settings/nm-settings-connection.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/settings/nm-settings-connection.c b/src/settings/nm-settings-connection.c index 538e90ee97..510046fa4d 100644 --- a/src/settings/nm-settings-connection.c +++ b/src/settings/nm-settings-connection.c @@ -2574,8 +2574,13 @@ nm_settings_connection_autoconnect_retries_set (NMSettingsConnection *self, } if (retries) priv->autoconnect_blocked_until = 0; - else + else { + /* XXX: the blocked time must be identical for all connections, otherwise + * the tracking of resetting the retry count in NMPolicy needs adjustment + * (as it would need to re-evaluate the next-timeout everytime a + * connection gets blocked). */ priv->autoconnect_blocked_until = nm_utils_get_monotonic_timestamp_s () + AUTOCONNECT_RESET_RETRIES_TIMER; + } } void