]> git.proxmox.com Git - qemu-server.git/commitdiff
Revert "vncproxy: wait max 10s for the socket if it does not exist"
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 28 Feb 2013 11:49:21 +0000 (12:49 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 28 Feb 2013 11:49:21 +0000 (12:49 +0100)
This reverts commit 58504d5edfe531ace87c40258e1b15e1a9f21c06.

The patch only works if the VM is on local host.

PVE/API2/Qemu.pm

index f91716f3e91c670c24961cfeeea6d145f3862f6d..1597e68b9e11d3cbb5eaea2429a92531727e5dab 100644 (file)
@@ -1110,9 +1110,6 @@ __PACKAGE__->register_method({
        my $realcmd = sub {
            my $upid = shift;
 
-           my $c = 0;
-           while ( ++$c < 10 && !-e "/var/run/qemu-server/$vmid.vnc" ) { sleep(1); }
-
            syslog('info', "starting vnc proxy $upid\n");
 
            my $qmcmd = [@$remcmd, "/usr/sbin/qm", 'vncproxy', $vmid];