Notify.php
authorAlan <alan@roojs.com>
Wed, 9 Aug 2023 08:58:37 +0000 (16:58 +0800)
committerAlan <alan@roojs.com>
Wed, 9 Aug 2023 08:58:37 +0000 (16:58 +0800)
Notify.php

index 547445c..a088eb3 100644 (file)
@@ -241,7 +241,7 @@ class Pman_Core_Notify extends Pman
         
         //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()) {
@@ -253,14 +253,10 @@ class Pman_Core_Notify extends Pman
             
             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;
             }