Udisks2: Fix for usb cdrom removal
This commit is contained in:
parent
bb16f0d245
commit
c45452ccaf
|
@ -264,7 +264,8 @@ _places_ud2_interfaces_removed_cb(void *data, const Eldbus_Message *msg)
|
|||
while (eldbus_message_iter_get_and_next(array_ifaces, 's', &iface_name))
|
||||
{
|
||||
printf("PLACES: InterfaceRemoved obj:%s - iface:%s\n", obj_path, iface_name);
|
||||
if (eina_streq(iface_name, UDISKS2_FILESYSTEM_IFACE))
|
||||
if (eina_streq(iface_name, UDISKS2_FILESYSTEM_IFACE) ||
|
||||
eina_streq(iface_name, UDISKS2_BLOCK_IFACE))
|
||||
if ((vol = places_volume_by_id_get(obj_path)))
|
||||
places_volume_del(vol);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue