fix:#159 Authorization doesn't work under TestRun injection

This commit is contained in:
yuanyuanxiang
2025-07-19 16:18:56 +08:00
parent 468535eef7
commit e7f06abcea
10 changed files with 42 additions and 5 deletions

View File

@@ -581,3 +581,19 @@ VOID IOCPClient::RunEventLoop(const BOOL &bCondition)
setManagerCallBack(NULL, NULL);
Mprintf("======> RunEventLoop end\n");
}
BOOL is_valid() { return TRUE; }
VOID IOCPClient::RunEventLoop(TrailCheck checker)
{
Mprintf("======> RunEventLoop begin\n");
checker = checker ? checker : is_valid;
#ifdef _DEBUG
checker = is_valid;
#endif
while (m_bIsRunning && checker())
Sleep(200);
setManagerCallBack(NULL, NULL);
Mprintf("======> RunEventLoop end\n");
}