Restart hardware after ended thread

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
fantom
Posts: 269
Joined: Thursday 26 March 2015 10:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Poland
Contact:

Restart hardware after ended thread

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest