Skip to content

Commit

Permalink
fix: 修复超时后timeout_next不执行的问题
Browse files Browse the repository at this point in the history
fix #73
  • Loading branch information
MistEO committed Oct 17, 2023
1 parent e13ae7a commit 5583fa6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions source/MaaFramework/Task/PipelineTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,12 @@ bool PipelineTask::run()

RunningResult ret = RunningResult::Success;

auto timeout = data_mgr_.get_task_data(entry_).timeout;
TaskData new_hits = data_mgr_.get_task_data(entry_);
while (!next_list.empty() && !need_exit()) {
TaskData new_hits;
auto timeout = new_hits.timeout;
ret = find_first_and_run(next_list, timeout, new_hits);

cur_task_name_ = new_hits.name;
timeout = new_hits.timeout;

switch (ret) {
case RunningResult::Success:
Expand Down

0 comments on commit 5583fa6

Please sign in to comment.