mirror of
https://github.com/YGGverse/Yo.git
synced 2025-01-28 15:34:26 +00:00
apply sleep on timeout value provided only
This commit is contained in:
parent
bc00f0c851
commit
33d657cb72
@ -581,9 +581,12 @@ foreach($search->get() as $document)
|
||||
);
|
||||
|
||||
// Delay next attempt
|
||||
sleep(
|
||||
$ftp->connection->attempts->delay
|
||||
);
|
||||
if ($ftp->connection->attempts->delay)
|
||||
{
|
||||
sleep(
|
||||
$ftp->connection->attempts->delay
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
} while ($connection === false);
|
||||
@ -605,7 +608,10 @@ foreach($search->get() as $document)
|
||||
}
|
||||
|
||||
// Crawl queue delay
|
||||
sleep(
|
||||
$config->cli->document->crawl->queue->limit
|
||||
);
|
||||
if ($config->cli->document->crawl->queue->limit)
|
||||
{
|
||||
sleep(
|
||||
$config->cli->document->crawl->queue->limit
|
||||
);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user