Skip to content

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

@doudou

Description

@doudou

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions