core/trivial: add code comment

(cherry picked from commit 1f3f142fed)
This commit is contained in:
Thomas Haller 2017-11-22 11:02:06 +01:00
parent f988bbe613
commit 0c0e8d1961

View file

@ -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