qvm-tools/qvm-shutdown: do not kill already dead VM
When VM stop just when the timeout expires, qvm-shutdown should not try to kill it - this would result in QubesException("VM already stopped!").
This commit is contained in:
parent
ec45308f1c
commit
fc7d686b2e
@ -99,6 +99,7 @@ def main():
|
|||||||
for vm in vms_list:
|
for vm in vms_list:
|
||||||
if not vm.is_running():
|
if not vm.is_running():
|
||||||
vms_list.remove (vm)
|
vms_list.remove (vm)
|
||||||
|
continue
|
||||||
if shutdown_counter > defaults["shutdown_counter_max"]:
|
if shutdown_counter > defaults["shutdown_counter_max"]:
|
||||||
# kill the VM
|
# kill the VM
|
||||||
if options.verbose:
|
if options.verbose:
|
||||||
|
Loading…
Reference in New Issue
Block a user