Skip to content

Commit

Permalink
event stopped and completed remains err
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaomlove committed Sep 14, 2023
1 parent 1e700e6 commit 6128c17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/functions_announce.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 6128c17

Please sign in to comment.