diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index bf71210c..fbfc3fba 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -5485,9 +5485,8 @@ sub vm_qmp_command { my $res; my $timeout; - if ($cmd->{arguments} && $cmd->{arguments}->{timeout}) { - $timeout = $cmd->{arguments}->{timeout}; - delete $cmd->{arguments}->{timeout}; + if ($cmd->{arguments}) { + $timeout = delete $cmd->{arguments}->{timeout}; } eval {