|
@@ -79,7 +79,7 @@ sub load($$) {
|
|
|
# Wait for the file to load
|
|
# Wait for the file to load
|
|
|
my $count = 0;
|
|
my $count = 0;
|
|
|
while (!loaded($name)) {
|
|
while (!loaded($name)) {
|
|
|
- sleep($WAIT_DELAY);
|
|
|
|
|
|
|
+ Time::HiRes::sleep($WAIT_DELAY);
|
|
|
$count++;
|
|
$count++;
|
|
|
if ($count > $MAX_WAIT) {
|
|
if ($count > $MAX_WAIT) {
|
|
|
die('Unable to open file: ' . $name . "\n");
|
|
die('Unable to open file: ' . $name . "\n");
|