Commit a79c7d34 authored by Leigh Stoller's avatar Leigh Stoller

Get rid of that ANNOYING extra 1 second delay that all scripts were

exhibiting. Sheesh!
parent 82e6bb75
......@@ -152,9 +152,11 @@ sub TBDBConnect()
}
my $dbuser = "$scriptname:$name";
while ($maxtries && !defined($DB)) {
while ($maxtries) {
$DB = Mysql->connect("localhost", $DBNAME, $dbuser, "none");
if (defined($DB)) {
last;
}
$maxtries--;
sleep(1);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment