stop queue if run out
authorAlan <alan@roojs.com>
Wed, 9 Aug 2023 09:20:40 +0000 (17:20 +0800)
committerAlan <alan@roojs.com>
Wed, 9 Aug 2023 09:20:40 +0000 (17:20 +0800)
Notify.php

index 5dd8a0b..437e355 100644 (file)
@@ -257,8 +257,9 @@ class Pman_Core_Notify extends Pman
                 if ($this->domain_queue !== false) {
                     $this->queue  = $this->remainingDomainQueue();
                     $this->domain_queue  = false;
+                    continue;
                 }
-                continue;
+                break; // nothing more in queue.. and no remaining one
             }