This commit is contained in:
zhouhuang 2024-12-15 20:52:10 +08:00
parent 60fa5d14f4
commit c96c3ed552

View File

@ -984,6 +984,7 @@ BOOLEAN CHostADSBFProcess::OnTimer(void)
const auto state = m_turbine->GetState(); const auto state = m_turbine->GetState();
if ((uint16_t)state.ads >= ADSSTATE::ADSSTATE_MAXSTATES || (uint16_t)state.device >= ADSSTATE::ADSSTATE_MAXSTATES) if ((uint16_t)state.ads >= ADSSTATE::ADSSTATE_MAXSTATES || (uint16_t)state.device >= ADSSTATE::ADSSTATE_MAXSTATES)
{ {
m_bRouteAdded = FALSE;
vLog(LOG_DEBUG, "%s read device state error.\n", m_pidName.c_str()); vLog(LOG_DEBUG, "%s read device state error.\n", m_pidName.c_str());
delete m_turbine; delete m_turbine;
m_turbine = NULL; m_turbine = NULL;