From fc7d686b2ee5035992f31edb578e822d2923aa31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 24 Sep 2014 14:14:24 +0200 Subject: [PATCH] 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!"). --- qvm-tools/qvm-shutdown | 1 + 1 file changed, 1 insertion(+) diff --git a/qvm-tools/qvm-shutdown b/qvm-tools/qvm-shutdown index f83228e3..fc083758 100755 --- a/qvm-tools/qvm-shutdown +++ b/qvm-tools/qvm-shutdown @@ -99,6 +99,7 @@ def main(): for vm in vms_list: if not vm.is_running(): vms_list.remove (vm) + continue if shutdown_counter > defaults["shutdown_counter_max"]: # kill the VM if options.verbose: