diff mbox series

[v5,04/12] python/machine.py: Perform early cleanup for wait() calls, too

Message ID 20200710050649.32434-5-jsnow@redhat.com
State New
Headers show
Series None | expand

Commit Message

John Snow July 10, 2020, 5:06 a.m. UTC
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>
---
 python/qemu/machine.py | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/python/qemu/machine.py b/python/qemu/machine.py
index 4280aab380..cac466fbe6 100644
--- a/python/qemu/machine.py
+++ b/python/qemu/machine.py
@@ -369,6 +369,7 @@  def wait(self):
         """
         Wait for the VM to power off
         """
+        self._early_cleanup()
         self._popen.wait()
         self._post_shutdown()