summaryrefslogtreecommitdiffstats
path: root/state.rb
diff options
context:
space:
mode:
Diffstat (limited to 'state.rb')
-rw-r--r--state.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/state.rb b/state.rb
index f476401..56322a1 100644
--- a/state.rb
+++ b/state.rb
@@ -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