mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-05 04:10:36 +01:00
parent
f988bbe613
commit
0c0e8d1961
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue