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 <jsnow@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Cleber Rosa <crosa@redhat.com> Tested-by: Cleber Rosa <crosa@redhat.com> Message-Id: <20200710050649.32434-5-jsnow@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
This commit is contained in:
parent
e2c97f1612
commit
3a7d64b6fc
@ -380,6 +380,7 @@ class QEMUMachine:
|
||||
"""
|
||||
Wait for the VM to power off
|
||||
"""
|
||||
self._early_cleanup()
|
||||
self._popen.wait()
|
||||
self._post_shutdown()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user