Do not start the task if it is not valid

This commit is contained in:
MultiMote 2017-08-20 15:09:54 +03:00
parent 8c4fa014bd
commit 3f02561f74

@ -54,6 +54,9 @@ void
QCron::
_checkState(bool firstRun)
{
if(!_is_valid)
return;
int interval_ms = 0;
QDateTime currentDateTime = QDateTime::currentDateTime();
@ -182,6 +185,7 @@ add(QDateTime & dt, EField field, int value)
}
}
/******************************************************************************/
void