diff options
Diffstat (limited to 'state.rb')
-rw-r--r-- | state.rb | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -239,9 +239,9 @@ class State def State.process_event(event) raise TypeError unless event.is_a? Event count = 0 - @@states.select{ |x| x.status == :up }.each do + @@states.select{ |x| x.status == :down }.each do |x| next unless x.react_to? event - x.hold(:system) + x.hold(:system, event.params) count += 1 end count |