TaskManager: Fix previous commit.

This commit is contained in:
Nodir Temirkhodjaev 2017-09-25 13:45:51 +05:00
parent ccc8f025a6
commit 21e4f5240d
2 changed files with 2 additions and 2 deletions

View File

@ -147,7 +147,7 @@ QDateTime TaskInfo::now()
void TaskInfo::run()
{
cancel();
if (m_taskWorker) return;
TaskWorker *taskWorker = createWorker();

View File

@ -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()) {