mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +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)
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user