aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--python/qemu/machine.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/qemu/machine.py b/python/qemu/machine.py
index 736a3c9..6905518 100644
--- a/python/qemu/machine.py
+++ b/python/qemu/machine.py
@@ -486,12 +486,12 @@ class QEMUMachine:
"""
self.shutdown(hard=True)
- def wait(self, timeout: Optional[int] = None) -> None:
+ def wait(self, timeout: Optional[int] = 3) -> None:
"""
Wait for the VM to power off and perform post-shutdown cleanup.
:param timeout: Optional timeout in seconds.
- Default None, an infinite wait.
+ Default 3 seconds, A value of None is an infinite wait.
"""
self.shutdown(has_quit=True, timeout=timeout)