Skip to content

Commit

Permalink
fix: build error
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Dec 26, 2024
1 parent 1ce6b21 commit 84ae86b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/MaaFramework/Task/PipelineTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ bool PipelineTask::run()
PipelineData::NextList interrupt;
bool error_handling = false;

while (!next.empty() && !need_to_stop_) {
while (!next.empty() && !context_->need_to_stop()) {
cur_task_ = current.name;

size_t next_size = next.size();
Expand All @@ -44,7 +44,7 @@ bool PipelineTask::run()

auto node_detail = run_reco_and_action(list, current);

if (need_to_stop_) {
if (context_->need_to_stop()) {
LogWarn << "need_to_stop" << VAR(current.name);
return true;
}
Expand Down

0 comments on commit 84ae86b

Please sign in to comment.