Skip to content
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

poll block within script_in_state will still be active after transitioning out of the state #128

Open
doudou opened this issue Jul 28, 2019 · 0 comments

Comments

@doudou
Copy link
Member

doudou commented Jul 28, 2019

In the following example

on :moved_outside do
  transition :inside => :outside
end
script_in_state do
  poll do
     moved_outside_event.emit if condition?
  end
end

the poll block will still be active. The workaround is to explicitely transition out of the poll using transition!, or to use poll_until

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant