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
Restart hardware after ended thread
Moderators: leecollings, remb0
Who is online
Users browsing this forum: No registered users and 1 guest