Skip to content

Commit

Permalink
fix rays limit not work (apache#1284)
Browse files Browse the repository at this point in the history
Change-Id: Ie62ff563944280795d14adad0f5cfc577c828004
  • Loading branch information
zhoney authored and tmljob committed Dec 10, 2020
1 parent 5b6d58f commit 210dddc
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public PathSet forward(Directions direction) {
// Store rays
paths.add(new Path(n.path()));
this.pathCount++;
if (reachLimit()) {
if (this.reachLimit()) {
return paths;
}
}
Expand Down Expand Up @@ -190,7 +190,7 @@ public PathSet forward(Directions direction) {
if (!this.rings && bothBack && uniqueEdge) {
paths.add(new Path(node.path()));
this.pathCount++;
if (reachLimit()) {
if (this.reachLimit()) {
return paths;
}
}
Expand All @@ -215,7 +215,7 @@ public PathSet forward(Directions direction) {
path.add(target);
paths.add(new RingPath(null, path));
this.pathCount++;
if (reachLimit()) {
if (this.reachLimit()) {
return paths;
}
}
Expand All @@ -230,6 +230,10 @@ public PathSet forward(Directions direction) {
for (List<Node> list : newVertices.values()) {
for (Node n : list) {
paths.add(new Path(n.path()));
this.pathCount++;
if (this.reachLimit()) {
return paths;
}
}
}
}
Expand Down

0 comments on commit 210dddc

Please sign in to comment.