From 7b3d204e6292c18b9dfccb645edb2c4693c7733a Mon Sep 17 00:00:00 2001 From: Alan Date: Mon, 23 Aug 2021 14:23:38 +0800 Subject: [PATCH] only add to queue if we are not waiting to start one.. --- Notify.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Notify.php b/Notify.php index 12ec3dd0..46f7e8fa 100644 --- a/Notify.php +++ b/Notify.php @@ -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--; } -- 2.39.2