mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-02-04 23:30:27 +01:00
linux: Log debug message when siblings array becomes empty
This commit is contained in:
parent
c2b7a53e71
commit
fa781e29da
1 changed files with 4 additions and 0 deletions
|
|
@ -235,6 +235,10 @@ uevent_signal_handler_cb (UpEnumeratorUdev *self,
|
|||
devices = g_hash_table_lookup (self->siblings, parent_id);
|
||||
|
||||
g_ptr_array_remove_fast (devices, obj);
|
||||
if (devices->len == 0) {
|
||||
g_debug ("No devices with parent %s left", parent_id);
|
||||
g_hash_table_remove (self->siblings, parent_id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue