mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-20 03:30:09 +01:00
core: mark as managed-type=removed when unrealize
This is needed to ensure that the right CleanupType is chosen when calling to nm_device_state_changed() a bit later. With this change CLEANUP_TYPE_REMOVED will be used instead of CLEANUP_TYPE_DECONFIGURE, which is wrong because the device has already disappeared.
This commit is contained in:
parent
32cbf4c629
commit
e06aaba1ca
1 changed files with 2 additions and 0 deletions
|
|
@ -8678,6 +8678,8 @@ nm_device_unrealize(NMDevice *self, gboolean remove_resources, GError **error)
|
|||
|
||||
g_object_thaw_notify(G_OBJECT(self));
|
||||
|
||||
nm_device_managed_type_set(self, NM_DEVICE_MANAGED_TYPE_REMOVED);
|
||||
|
||||
nm_device_set_unmanaged_flags(self, NM_UNMANAGED_PLATFORM_INIT, TRUE);
|
||||
|
||||
nm_device_set_unmanaged_flags(self,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue