Watchdog avec date/time et reporting fonctionnel.
This commit is contained in:
@@ -44,16 +44,18 @@ int CLANDeviceMonitor::PingDevice()
|
||||
|
||||
CLANDeviceMonitor::~CLANDeviceMonitor()
|
||||
{
|
||||
if(mDevMonitorTimer != 0)
|
||||
{
|
||||
mDevMonitorTimer->stop();
|
||||
delete mDevMonitorTimer;
|
||||
}
|
||||
if(mPingProcess != 0)
|
||||
{
|
||||
mPingProcess->terminate();
|
||||
delete mPingProcess;
|
||||
}
|
||||
if(mDevMonitorTimer != 0)
|
||||
{
|
||||
mDevMonitorTimer->stop();
|
||||
mDevMonitorTimer = 0;
|
||||
delete mDevMonitorTimer;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -94,7 +96,8 @@ void CLANDeviceMonitor::PingProcessFinished(int exitCode, QProcess::ExitStatus e
|
||||
}
|
||||
|
||||
GetDeviceCANStatusMask();
|
||||
mDevMonitorTimer->start(LAN_DEVICE_MONITOR_PRESENCE_CHECK_TIMEOUT);
|
||||
if(mDevMonitorTimer != 0)
|
||||
mDevMonitorTimer->start(LAN_DEVICE_MONITOR_PRESENCE_CHECK_TIMEOUT);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user