mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-13 11:40:30 +01:00
core: don't retry connection with no secrets after timeout
NMPolicy was resetting the "don't autoconnect because we don't have secrets" state on a connection when the autoconnect-retries timer timed out, but this doesn't make sense, since the timeout doesn't change the fact that there are no secrets. https://bugzilla.gnome.org/show_bug.cgi?id=670631
This commit is contained in:
parent
4e74670b47
commit
eceb613f4c
1 changed files with 0 additions and 7 deletions
|
|
@ -1229,7 +1229,6 @@ reset_connections_retries (gpointer user_data)
|
|||
|
||||
if (con_stamp < now) {
|
||||
nm_settings_connection_reset_autoconnect_retries (connection);
|
||||
nm_settings_connection_set_autoconnect_blocked_reason (connection, NM_DEVICE_STATE_REASON_NONE);
|
||||
changed = TRUE;
|
||||
} else if (min_stamp == 0 || min_stamp > con_stamp)
|
||||
min_stamp = con_stamp;
|
||||
|
|
@ -1375,12 +1374,6 @@ device_state_changed (NMDevice *device,
|
|||
guint32 tries = nm_settings_connection_get_autoconnect_retries (connection);
|
||||
|
||||
if (reason == NM_DEVICE_STATE_REASON_NO_SECRETS) {
|
||||
/* If the connection couldn't get the secrets it needed (ex because
|
||||
* the user canceled, or no secrets exist), there's no point in
|
||||
* automatically retrying because it's just going to fail anyway.
|
||||
*/
|
||||
nm_settings_connection_set_autoconnect_retries (connection, 0);
|
||||
|
||||
/* Mark the connection as failed due to missing secrets so that we can
|
||||
* automatically re-try when an secret agent registers.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue