Skip to content

Commit

Permalink
only check end if it's connected to cur_state
Browse files Browse the repository at this point in the history
  • Loading branch information
sgpthomas committed Jul 16, 2024
1 parent 9135b6f commit 3013498
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fud2/fud-core/src/exec/planner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ impl SingleOpOutputPlanner {
state_queue.push(op.output[0]);
visited[op.output[0]] = true;
breadcrumbs[op.output[0]] = Some(op_ref);
}

// Finish when we reach the goal edge.
if end == Destination::Op(op_ref) {
break;
// Finish when we reach the goal edge.
if end == Destination::Op(op_ref) {
break;
}
}
}
}
Expand Down

0 comments on commit 3013498

Please sign in to comment.