//echo "BATCH SIZE: ". count($ar) . "\n";
- $requeue = array();
+
while (true) {
// only add if we don't have any queued up..
if (empty($this->queue) && $w->fetch()) {
if (empty($this->queue)) {
$this->logecho("COMPLETED MAIN QUEUE - running maxed out domains");
- if ($pushed === true) {
- $pushed = $this->remainingDomainQueue();
- }
- if (empty($pushed)) {
- break;
+ if ($this->domain_queue !== false) {
+ $this->queue = $this->remainingDomainQueue();
+ $this->domain_queue = false;
}
- $this->queue = $pushed;
- $pushed = false;
continue;
}