]> git.proxmox.com Git - qemu-server.git/commitdiff
vncproxy: remove check if VM is running
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 25 Jun 2014 07:54:23 +0000 (09:54 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 25 Jun 2014 07:54:23 +0000 (09:54 +0200)
Because this does not work when VM is on other cluster node.

PVE/API2/Qemu.pm

index f2c9c780902af2f8382544719a4b74af0d5cc395..5ba2e73692a4c201446464242858a60ab835bb33 100644 (file)
@@ -1348,8 +1348,6 @@ __PACKAGE__->register_method({
                $cmd = ['/bin/nc', '-l', '-p', $port, '-w', $timeout, '-c', "$qmstr 2>/dev/null"];
            }
 
-           die "VM $vmid not running\n" if !PVE::QemuServer::check_running($vmid);
-
            PVE::Tools::run_command($cmd);
 
            return;