lib/space/action/handler.rb in space-0.0.6 vs lib/space/action/handler.rb in space-0.0.7
- old
+ new
@@ -15,11 +15,12 @@
end
def run(line)
scope, type = parse(line)
action = action_for(scope, type)
- action.run
- Events.flush
+ Events.sources.registered do
+ action.run
+ end
end
private
def action_for(scope, type)