First initiate shutdown for all vm's, then wait

This commit is contained in:
donoban 2021-01-25 22:40:10 +01:00
parent 9a36089ee6
commit 696a668bbe
No known key found for this signature in database
GPG Key ID: 141310D8E3ED08A5

View File

@ -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: