mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 18:20:07 +01:00
manager: don't the already activated devices shouldn't be considered added
The NMSettings shouldn't generate a new default wired connection for devices that are being deactivated.
This commit is contained in:
parent
1ab89ecf85
commit
ec542df4df
1 changed files with 3 additions and 0 deletions
|
|
@ -762,6 +762,9 @@ manager_device_state_changed (NMDevice *device,
|
|||
break;
|
||||
}
|
||||
|
||||
if (old_state >= NM_DEVICE_STATE_ACTIVATED)
|
||||
return;
|
||||
|
||||
if ( new_state == NM_DEVICE_STATE_UNAVAILABLE
|
||||
|| new_state == NM_DEVICE_STATE_DISCONNECTED)
|
||||
nm_settings_device_added (priv->settings, device);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue