fix.修复ProcessTask的任务间延迟为0的问题

This commit is contained in:
MistEO
2022-04-11 23:53:13 +08:00
parent 78776d47fa
commit 1d6d555ce7
2 changed files with 6 additions and 1 deletions

View File

@@ -36,6 +36,10 @@ bool asst::ProcessTask::run()
Log.info("task is disable, pass", basic_info().to_string());
return true;
}
if (m_task_delay == TaskDelayUnsetted) {
m_task_delay = Resrc.cfg().get_options().task_delay;
}
m_cur_tasks_name = m_raw_tasks_name;
for (m_cur_retry = 0; m_cur_retry <= m_retry_times; ++m_cur_retry) {
if (_run()) {