slurp loop is the problem ?

This commit is contained in:
fred 2023-03-14 18:19:27 +01:00
parent dcca204d7a
commit faf145c006
1 changed files with 2 additions and 7 deletions

View File

@ -141,13 +141,8 @@ class Fred {
$urlg1pub = $matches[1];
$page2 = '';
$rounds = 0;
while (empty($page2) and $rounds < 10) {
sleep($this->gatewayDelay);
$page2 = file_get_contents($urlg1pub);
}
sleep($this->gatewayDelay);
$page2 = file_get_contents($urlg1pub);
if (empty($page2)) {