Skip to content

Commit

Permalink
Update src/core/graph.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Byeong-gil Jun <[email protected]>
  • Loading branch information
lhstrh and byeonggiljun authored Aug 15, 2023
1 parent 2243ed7 commit b3c9595
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,9 @@ export class SortablePrecedenceGraph<
} else {
// Look further upstream for start nodes that match the type.
for (const newStartNode of pg.getDownstreamNeighbors(node)) {
startNodes.add(newStartNode);
if (!visited.has(newStartNode)) {
startNodes.add(newStartNode);
}
}
}
}
Expand Down

0 comments on commit b3c9595

Please sign in to comment.