From: Thomas Lamprecht Date: Mon, 4 Dec 2017 10:30:10 +0000 (+0100) Subject: wait_for_vnc_port: die if port did not get ready X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=8fd0d63460153d1aeb2933a71ffdd18a8448d960 wait_for_vnc_port: die if port did not get ready All of our users expected this behavior and did not check for undef Signed-off-by: Thomas Lamprecht --- diff --git a/src/PVE/Tools.pm b/src/PVE/Tools.pm index 13e70f1..2c64f6a 100644 --- a/src/PVE/Tools.pm +++ b/src/PVE/Tools.pm @@ -812,7 +812,7 @@ sub wait_for_vnc_port { usleep($sleeptime); } - return undef; + die "Timeout while waiting for port '$port' to get ready!\n"; } sub next_unused_port {