From 6128c17aa45b6c9134bc5a4125c4c43d1df5a1af Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Fri, 15 Sep 2023 03:57:42 +0800 Subject: [PATCH] event stopped and completed remains err --- include/functions_announce.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/functions_announce.php b/include/functions_announce.php index 1aa18c72..323d9530 100644 --- a/include/functions_announce.php +++ b/include/functions_announce.php @@ -81,7 +81,7 @@ function err($msg) */ function warn($msg, int $interval = 7200) { - if (!empty($GLOBALS['event'])) { + if (!empty($GLOBALS['event']) && in_array($GLOBALS['event'], ["completed", "stopped"])) { //force return err, otherwise event will be lost in the next announce request return err($msg); }