diff --git a/das-dn/hostadsbf/hostadsbf.cpp b/das-dn/hostadsbf/hostadsbf.cpp index a95ec5dc..18003cd0 100644 --- a/das-dn/hostadsbf/hostadsbf.cpp +++ b/das-dn/hostadsbf/hostadsbf.cpp @@ -982,8 +982,6 @@ BOOLEAN CHostADSBFProcess::OnTimer(void) vLog(LOG_DEBUG, "%s add route(%s to %s) with remote user name: %s, and remote password: %s, return value is: %d\n", m_pidName.c_str(), m_localIp.c_str(), m_remoteIp.c_str(), m_adsUser.c_str(), m_adsPassword.c_str(), ret); if (ret != 0) return TRUE; } - m_bRouteAdded = TRUE; - m_connect_count = 0; //添加成功 vLog(LOG_DEBUG, "%s start to connect(%s:%d)\n", m_pidName.c_str(), m_remoteIp.c_str(), m_remotePort); m_turbine = new AdsDevice{m_remoteIp, AmsNetId(m_remoteNetId), m_remotePort}; @@ -994,7 +992,10 @@ BOOLEAN CHostADSBFProcess::OnTimer(void) vLog(LOG_DEBUG, "%s read device state error.\n", m_pidName.c_str()); delete m_turbine; m_turbine = NULL; + return TRUE; } + m_bRouteAdded = TRUE; + m_connect_count = 0; } return TRUE; }