mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-26 21:37:22 +08:00
event stopped and completed remains err
This commit is contained in:
@@ -81,7 +81,7 @@ function err($msg)
|
|||||||
*/
|
*/
|
||||||
function warn($msg, int $interval = 7200)
|
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
|
//force return err, otherwise event will be lost in the next announce request
|
||||||
return err($msg);
|
return err($msg);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user