lib/finite_machine/subscribers.rb in finite_machine-0.1.0 vs lib/finite_machine/subscribers.rb in finite_machine-0.2.0

- old
+ new

@@ -27,10 +27,10 @@ def subscribe(*observers) observers.each { |observer| @subscribers << observer } end def visit(event) - each { |subscriber| @mutex.synchronize { event.notify subscriber } } + each { |subscriber| event.notify subscriber } end def reset @subscribers.clear self