|
|
@@ -1775,10 +1775,11 @@ void CHealthManagerEntity::OnEntityStateHook(const char* pszEntityName, const ch
|
|
|
else
|
|
|
csResultCode = CSimpleStringA::Format("RTA51%c%c", iByteHigh + 0x30, iByteLow - 10 + 0x41);
|
|
|
DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("resultcode:%s", csResultCode.GetData());
|
|
|
+ LogWarn(Severity_High, Error_Unexpect, HealthManager_UserErrorCode_EntityLost_Start + esi.wEntityDevelopID, tmpWarnMsg.GetData());
|
|
|
DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM).setLogCode("QLR0402501Z001").setResultCode(csResultCode.GetData())(tmpWarnMsg.GetData());
|
|
|
m_modRunInfo[pszEntityName].lostCount++;
|
|
|
//doing nothing before enter main page. HandShake will take it.
|
|
|
- if (!m_bEnterMainPageEver && m_modRunInfo[pszEntityName].lostCount < m_maxLostTimes)
|
|
|
+ if (m_bEnterMainPageEver && m_modRunInfo[pszEntityName].lostCount < m_maxLostTimes)
|
|
|
{
|
|
|
EntityLostProcTask* task = new EntityLostProcTask(this, pszEntityName);
|
|
|
GetFunction()->PostThreadPoolTask(task);
|
|
|
@@ -1952,6 +1953,7 @@ void CHealthManagerEntity::OnSelfCheckTimeout()
|
|
|
{
|
|
|
CSimpleStringA pszEntityName(m_activeEntity[i]);
|
|
|
//invalid or "HealthManager" itself,no need to check
|
|
|
+ //
|
|
|
if (m_activeEntity[i].IsNullOrEmpty() || m_activeEntity[i].Compare(GetEntityName()) == 0)
|
|
|
continue;
|
|
|
if (tmpTerminalStage.Compare("S") == 0)
|