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>
master
John Snow 2020-07-10 01:06:41 -04:00 committed by Philippe Mathieu-Daudé
parent e2c97f1612
commit 3a7d64b6fc
1 changed files with 1 additions and 0 deletions

View File

@ -380,6 +380,7 @@ class QEMUMachine:
"""
Wait for the VM to power off
"""
self._early_cleanup()
self._popen.wait()
self._post_shutdown()