mirror of
https://github.com/tnodir/fort
synced 2024-11-15 08:46:03 +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()
|
void TaskInfo::run()
|
||||||
{
|
{
|
||||||
cancel();
|
if (m_taskWorker) return;
|
||||||
|
|
||||||
TaskWorker *taskWorker = createWorker();
|
TaskWorker *taskWorker = createWorker();
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ void TaskManager::runExpiredTasks()
|
|||||||
bool anyTaskEnabled = false;
|
bool anyTaskEnabled = false;
|
||||||
|
|
||||||
foreach (TaskInfo *taskInfo, m_taskInfos) {
|
foreach (TaskInfo *taskInfo, m_taskInfos) {
|
||||||
if (taskInfo->enabled() && !taskInfo->running()) {
|
if (taskInfo->enabled()) {
|
||||||
anyTaskEnabled = true;
|
anyTaskEnabled = true;
|
||||||
|
|
||||||
if (now > taskInfo->plannedRun()) {
|
if (now > taskInfo->plannedRun()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user