lib/celluloid/actor.rb in celluloid-0.12.2 vs lib/celluloid/actor.rb in celluloid-0.12.3
- old
+ new
@@ -387,10 +387,10 @@
Logger.crash("#{@subject.class}: CLEANUP CRASHED!", ex)
end
# Run a method inside a task unless it's exclusive
def task(task_type, method_name = nil, &block)
- if @exclusives && (@exclusives == :all || @exclusives.include?(method_name))
+ if @exclusives && (@exclusives == :all || @exclusives.include?(method_name.to_sym))
exclusive { block.call }
else
@task_class.new(task_type, &block).resume
end
end