From 0229cc5c8ece5a39249a0a8cc045bfc8253beea1 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Fri, 22 Jan 2016 22:18:58 -0800 Subject: [PATCH] Wait at most 5 seconds to check new webmin version --- webmin/webmin-lib.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webmin/webmin-lib.pl b/webmin/webmin-lib.pl index 5764f409f..064f458c4 100755 --- a/webmin/webmin-lib.pl +++ b/webmin/webmin-lib.pl @@ -2136,7 +2136,8 @@ sub get_latest_webmin_version { my $file = &transname(); my ($error, $version); -&http_download($primary_host, $primary_port, '/', $file, \$error); +&http_download($primary_host, $primary_port, '/', $file, \$error, undef, 0, + undef, undef, 5); return (0, $error) if ($error); open(FILE, $file); while() {