From acccc039b68e277fda9c8a1ae5cdfaf650df02da Mon Sep 17 00:00:00 2001 From: yuanyuanxiang <962914132@qq.com> Date: Sat, 25 Apr 2026 17:57:00 +0200 Subject: [PATCH] Fix: Multiple DLLs execute may fail due to a global variable --- common/scheduler.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/common/scheduler.h b/common/scheduler.h index c7ec858..607f41e 100644 --- a/common/scheduler.h +++ b/common/scheduler.h @@ -48,17 +48,13 @@ public: // --- 2. 启动执行模式 (Mode 1) --- if (p->Mode == SCH_MODE_STARTUP) { - static bool bSessionLocked = false; - if (bSessionLocked) return false; - + // 检查时间间隔限制 if (p->Config.Startup.Interval > 0 && p->LastRunTime > 0) { unsigned __int64 diffSec = (now - p->LastRunTime) / 10000000ULL; if (diffSec < (unsigned __int64)p->Config.Startup.Interval) { return false; } } - - bSessionLocked = true; return true; }