start vncproxy worker in the background

this allows it to use the vncproxy api call to use from pvesh,
because before we waited until the task finished to get the vncticket
which was too late

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2017-01-23 13:51:21 +01:00 committed by Dietmar Maurer
parent 680bacb473
commit 2c7fc94783

View File

@ -1484,7 +1484,7 @@ __PACKAGE__->register_method({
return;
};
my $upid = $rpcenv->fork_worker('vncproxy', $vmid, $authuser, $realcmd);
my $upid = $rpcenv->fork_worker('vncproxy', $vmid, $authuser, $realcmd, 1);
PVE::Tools::wait_for_vnc_port($port);