Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions qubes/ext/block.py
Original file line number Diff line number Diff line change
Expand Up @@ -646,10 +646,10 @@ async def on_domain_shutdown(self, vm, event, **_kwargs):
new_cache[domain.name] = {}
if domain == vm:
for dev_id, front_vm in self.devices_cache[domain.name].items():
if front_vm is None:
continue
dev = BlockDevice(Port(vm, dev_id, "block"))
vm.fire_event("device-removed:block", port=dev.port)
if front_vm is None:
continue
await self.detach_and_notify(front_vm, dev.port)
continue
for dev_id, front_vm in self.devices_cache[domain.name].items():
Expand Down