From 696a668bbe6892032d3569247cd723f4f3146cdb Mon Sep 17 00:00:00 2001 From: donoban Date: Mon, 25 Jan 2021 22:40:10 +0100 Subject: [PATCH] First initiate shutdown for all vm's, then wait --- qubesmanager/qube_manager.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qubesmanager/qube_manager.py b/qubesmanager/qube_manager.py index a45043f..cc43853 100644 --- a/qubesmanager/qube_manager.py +++ b/qubesmanager/qube_manager.py @@ -1264,7 +1264,9 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QMainWindow): for connected_vm in connected_vms: if not self.shutdown_vm(connected_vm): return False - with common_threads.busy_cursor(): + + with common_threads.busy_cursor(): + for connected_vm in connected_vms: while connected_vm.is_running(): time.sleep(0.5) else: