Skip to content

Commit

Permalink
Unpause a paused qube before shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
alimirjamali committed Sep 3, 2024
1 parent 68070df commit 8d29d4d
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)

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

0 comments on commit 8d29d4d

Please sign in to comment.