From 263c803dd16ae58e01609b35b35e6fa84d2c04c1 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 10 Oct 2023 12:57:00 +0200 Subject: [PATCH] api: reduce overly lengthy comment Signed-off-by: Thomas Lamprecht --- PVE/API2/Qemu.pm | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index 774b0c71..c8a87f3f 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -3081,12 +3081,8 @@ __PACKAGE__->register_method({ my $shutdown = 1; - # if vm is paused, do not shutdown (but stop if forceStop = 1) - # otherwise, we will infer a shutdown command, but run into the timeout, - # then when the vm is resumed, it will instantly shutdown - # - # checking the qmp status here to get feedback to the gui/cli/api - # and the status query should not take too long + # sending a graceful shutdown command to paused VMs runs into timeouts, and even worse, when + # the VM gets resumed later, it still gets the request delivered and powers off if (PVE::QemuServer::vm_is_paused($vmid)) { if ($param->{forceStop}) { warn "VM is paused - stop instead of shutdown\n";