only add to queue if we are not waiting to start one..
authorAlan <alan@roojs.com>
Mon, 23 Aug 2021 06:23:38 +0000 (14:23 +0800)
committerAlan <alan@roojs.com>
Mon, 23 Aug 2021 06:23:38 +0000 (14:23 +0800)
Notify.php

index 12ec3dd..46f7e8f 100644 (file)
@@ -229,7 +229,8 @@ class Pman_Core_Notify extends Pman
         $pushed = array();
         $requeue = array();
         while (true) {
-            if ($w->fetch()) {
+            // only add if we don't have any queued up..
+            if (empty($ar) && $w->fetch()) {
                 $ar[] = clone($w);
                 $total--;
             }