update
This commit is contained in:
parent
42af041cf4
commit
d1cf0dcc71
@ -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);
|
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;
|
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);
|
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};
|
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());
|
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;
|
||||||
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
m_bRouteAdded = TRUE;
|
||||||
|
m_connect_count = 0;
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user