]> git.proxmox.com Git - pve-common.git/commitdiff
wait_for_vnc_port: die if port did not get ready
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 4 Dec 2017 10:30:10 +0000 (11:30 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 5 Dec 2017 12:48:49 +0000 (13:48 +0100)
All of our users expected this behavior and did not check for undef

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/Tools.pm

index 13e70f1afe828baa50cc84f2eab650e6331b6d60..2c64f6ac33206791a5e70b038b49b76fa71b13dd 100644 (file)
@@ -812,7 +812,7 @@ sub wait_for_vnc_port {
        usleep($sleeptime);
     }
 
        usleep($sleeptime);
     }
 
-    return undef;
+    die "Timeout while waiting for port '$port' to get ready!\n";
 }
 
 sub next_unused_port {
 }
 
 sub next_unused_port {