-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
decorator limiter would not limiter the time between two tick from tree #25
Comments
i found the bug here. in limiter we should return the b3.RUNNING instead of b3.SUCCESS or b3.FAILURE |
yep i found that return b3.RUNNING in limiter still not work well. the only way to fix it is to check whether the key i is set or not. and set it in the first time we enter the open callback |
@linhaiwei123 would you be able to submit a PR with the failing test or a simple way to reproduce the bug? |
open: function(tick) { |
@wqhk would you be able to submit a PR with a failing test? |
@danielepolencic I submit a PR. Learn BT this week, maybe misunderstand the usage of Limiter =。= |
the tree is as below
and i do enter the limiter but when i tick the tree in the update again the time of the limiter would reset to zero again.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: