mirror of
https://github.com/tnodir/fort
synced 2024-11-15 03:36:07 +00:00
TaskManager: Fix previous commit.
This commit is contained in:
parent
ccc8f025a6
commit
21e4f5240d
@ -147,7 +147,7 @@ QDateTime TaskInfo::now()
|
||||
|
||||
void TaskInfo::run()
|
||||
{
|
||||
cancel();
|
||||
if (m_taskWorker) return;
|
||||
|
||||
TaskWorker *taskWorker = createWorker();
|
||||
|
||||
|
@ -89,7 +89,7 @@ void TaskManager::runExpiredTasks()
|
||||
bool anyTaskEnabled = false;
|
||||
|
||||
foreach (TaskInfo *taskInfo, m_taskInfos) {
|
||||
if (taskInfo->enabled() && !taskInfo->running()) {
|
||||
if (taskInfo->enabled()) {
|
||||
anyTaskEnabled = true;
|
||||
|
||||
if (now > taskInfo->plannedRun()) {
|
||||
|
Loading…
Reference in New Issue
Block a user