Skip to content

Commit 3a7d64b

Browse files
jnsnowphilmd
authored andcommitted
python/machine.py: Perform early cleanup for wait() calls, too
This is primarily for consistency, and is a step towards wait() and shutdown() sharing the same implementation so that the two cleanup paths cannot diverge. Signed-off-by: John Snow <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Reviewed-by: Cleber Rosa <[email protected]> Tested-by: Cleber Rosa <[email protected]> Message-Id: <[email protected]> Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
1 parent e2c97f1 commit 3a7d64b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python/qemu/machine.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ def wait(self):
380380
"""
381381
Wait for the VM to power off
382382
"""
383+
self._early_cleanup()
383384
self._popen.wait()
384385
self._post_shutdown()
385386

0 commit comments

Comments
 (0)