mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-16 08:50:26 +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.
This commit is contained in:
parent
e66b93b01e
commit
49c1e01519
1 changed files with 5 additions and 1 deletions
|
|
@ -12788,7 +12788,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