mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-05 12:40:16 +01:00
core: fix broken autoconnect due to wrong nm_settings_connection_autoconnect_is_blocked()
Fixes:36ac08c092(cherry picked from commit249aff6349)
This commit is contained in:
parent
5468e72d25
commit
e4f042f9bf
1 changed files with 2 additions and 2 deletions
|
|
@ -2672,8 +2672,8 @@ nm_settings_connection_autoconnect_is_blocked (NMSettingsConnection *self)
|
|||
{
|
||||
NMSettingsConnectionPrivate *priv = NM_SETTINGS_CONNECTION_GET_PRIVATE (self);
|
||||
|
||||
return !priv->autoconnect_blocked_reason
|
||||
&& priv->autoconnect_retries != 0;
|
||||
return priv->autoconnect_blocked_reason != NM_SETTINGS_AUTO_CONNECT_BLOCKED_REASON_NONE
|
||||
|| priv->autoconnect_retries == 0;
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue