mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 17:00:08 +01:00
core: announce device removal even for udev events with no ifindex property
Actually, this case should no longer happen, but just to be sure: when a udev remove event without ifindex comes, get the ifindex from the cache and announce the device removal. Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
d59311b095
commit
bc092bcf44
1 changed files with 1 additions and 0 deletions
|
|
@ -2534,6 +2534,7 @@ udev_device_removed (NMPlatform *platform,
|
|||
g_hash_table_iter_init (&iter, priv->udev_devices);
|
||||
while (g_hash_table_iter_next (&iter, &key, &value)) {
|
||||
if ((GUdevDevice *)value == udev_device) {
|
||||
ifindex = GPOINTER_TO_INT (key);
|
||||
g_hash_table_iter_remove (&iter);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue