Page 1 of 1

Restart hardware after ended thread

Posted: Sunday 24 January 2016 12:30
by fantom
What do you think of this addition
if (result.size() == 1)
{
std::vector<std::string> sd = result[0];
_log.Log(LOG_ERROR, "%s hardware (%d) thread seems to have ended unexpectedly", sd[0].c_str(), pHardware->m_HwdID);
if (diff > 600)
{
_log.Log(LOG_ERROR, "%s hardware (%d) - trying to restart!....", sd[0].c_str(), pHardware->m_HwdID);
m_devicestorestart.push_back(pHardware->m_HwdID);
}
}
in this place :
https://github.com/domoticz/domoticz/bl ... cpp#L11668
?

Fantom