mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-03 07:50:38 +01:00
core: don't trigger recheck to auto activate for deleted devices
The delete_on_deactivate_link_delete() handler may be called after the
device was already removed from NMManager. Don't allow that.
Check whether the device is still exported on D-Bus as indication.
(cherry picked from commit 49c1e01519)
This commit is contained in:
parent
e74e71d0bc
commit
72f9cfe8bc
1 changed files with 5 additions and 1 deletions
|
|
@ -12628,7 +12628,11 @@ delete_on_deactivate_link_delete(gpointer user_data)
|
|||
if (!nm_device_unrealize(self, TRUE, &error))
|
||||
_LOGD(LOGD_DEVICE, "delete_on_deactivate: unrealizing failed (%s)", error->message);
|
||||
|
||||
nm_device_emit_recheck_auto_activate(self);
|
||||
if (nm_dbus_object_is_exported(NM_DBUS_OBJECT(self))) {
|
||||
/* The device is still alive. We may need to autoactivate virtual
|
||||
* devices again. */
|
||||
nm_device_emit_recheck_auto_activate(self);
|
||||
}
|
||||
|
||||
g_free(data);
|
||||
return FALSE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue