Skip to content

Commit

Permalink
fix: prevent infinite loop
Browse files Browse the repository at this point in the history
  • Loading branch information
cha0s committed Feb 18, 2024
1 parent 7267b6d commit 1563f05
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/core/build/flecks.js
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,10 @@ class Flecks {
}
}
});
this.invoke('@flecks/core.priority', graph, hook);
// Avoid re-entry.
if ('@flecks/core.priority' !== hook) {
this.invoke('@flecks/core.priority', graph, hook);
}
return graph;
}

Expand Down

0 comments on commit 1563f05

Please sign in to comment.