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