mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-04 15:40:22 +01:00
policy: minor code cleanup in activate_slave_connections()
(cherry picked from commit 071495c754)
This commit is contained in:
parent
99fc77c7b0
commit
a508d0ad5c
1 changed files with 3 additions and 5 deletions
|
|
@ -1579,15 +1579,13 @@ activate_slave_connections (NMPolicy *self, NMDevice *device)
|
|||
|| nm_streq0 (slave_master, master_uuid_applied)
|
||||
|| nm_streq0 (slave_master, master_uuid_settings)) {
|
||||
NMSettingsConnection *settings = NM_SETTINGS_CONNECTION (slave);
|
||||
NMSettingsAutoconnectBlockedReason reason;
|
||||
|
||||
if (!internal_activation)
|
||||
nm_settings_connection_autoconnect_retries_reset (settings);
|
||||
|
||||
reason = nm_settings_connection_autoconnect_blocked_reason_get (settings);
|
||||
if (reason == NM_SETTINGS_AUTO_CONNECT_BLOCKED_REASON_FAILED) {
|
||||
reason = NM_SETTINGS_AUTO_CONNECT_BLOCKED_REASON_NONE;
|
||||
nm_settings_connection_autoconnect_blocked_reason_set (settings, reason);
|
||||
if (nm_settings_connection_autoconnect_blocked_reason_get (settings) == NM_SETTINGS_AUTO_CONNECT_BLOCKED_REASON_FAILED) {
|
||||
nm_settings_connection_autoconnect_blocked_reason_set (settings,
|
||||
NM_SETTINGS_AUTO_CONNECT_BLOCKED_REASON_NONE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue