mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 09:30:16 +01:00
manager: guard the flag setting by the actual device presence
The parent might be an active connection w/o the device being determined.
This commit is contained in:
parent
93b632a7fa
commit
59b497f0f0
1 changed files with 4 additions and 2 deletions
|
|
@ -3126,8 +3126,10 @@ _internal_activate_device (NMManager *self, NMActiveConnection *active, GError *
|
|||
* decides to go unmanaged while we're activating (perhaps because other slaves
|
||||
* go away leaving him with no kids).
|
||||
*/
|
||||
nm_device_set_unmanaged_by_flags (master_device, NM_UNMANAGED_EXTERNAL_DOWN,
|
||||
NM_UNMAN_FLAG_OP_FORGET, NM_DEVICE_STATE_REASON_USER_REQUESTED);
|
||||
if (master_device) {
|
||||
nm_device_set_unmanaged_by_flags (master_device, NM_UNMANAGED_EXTERNAL_DOWN,
|
||||
NM_UNMAN_FLAG_OP_FORGET, NM_DEVICE_STATE_REASON_USER_REQUESTED);
|
||||
}
|
||||
|
||||
nm_active_connection_set_master (active, master_ac);
|
||||
_LOGD (LOGD_CORE, "Activation of '%s' depends on active connection %p %s",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue