Skip to content

Commit

Permalink
Kill paused qubes on system shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
alimirjamali committed Sep 3, 2024
1 parent 68070df commit 37c9ee9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions qubes/vm/qubesvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1381,6 +1381,8 @@ async def shutdown(self, force=False, wait=False, timeout=None):
try:
await self.fire_event_async('domain-pre-shutdown',
pre_event=True, force=force)
if self.is_paused():
raise qubes.exc.QubesVMNotRunningError(self)

Check warning on line 1385 in qubes/vm/qubesvm.py

View check run for this annotation

Codecov / codecov/patch

qubes/vm/qubesvm.py#L1384-L1385

Added lines #L1384 - L1385 were not covered by tests

if self.__waiter is None:
self.__waiter = asyncio.get_running_loop().create_future()
Expand Down

0 comments on commit 37c9ee9

Please sign in to comment.