forked from La_Bureautique/zeg1jeux
slurp loop is the problem ?
This commit is contained in:
parent
dcca204d7a
commit
faf145c006
|
@ -141,13 +141,8 @@ class Fred {
|
||||||
$urlg1pub = $matches[1];
|
$urlg1pub = $matches[1];
|
||||||
|
|
||||||
$page2 = '';
|
$page2 = '';
|
||||||
$rounds = 0;
|
sleep($this->gatewayDelay);
|
||||||
|
$page2 = file_get_contents($urlg1pub);
|
||||||
while (empty($page2) and $rounds < 10) {
|
|
||||||
|
|
||||||
sleep($this->gatewayDelay);
|
|
||||||
$page2 = file_get_contents($urlg1pub);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (empty($page2)) {
|
if (empty($page2)) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue