lib/celluloid/proxy/sync.rb in celluloid-0.18.0.pre vs lib/celluloid/proxy/sync.rb in celluloid-0.18.0.pre2

- old
+ new

@@ -3,12 +3,10 @@ def respond_to?(meth, include_private = false) __class__.instance_methods.include?(meth) || method_missing(:respond_to?, meth, include_private) end def method_missing(meth, *args, &block) - unless @mailbox.alive? - fail ::Celluloid::DeadActorError, "attempted to call a dead actor: #{meth}" - end + raise ::Celluloid::DeadActorError, "attempted to call a dead actor: #{meth}" unless @mailbox.alive? if @mailbox == ::Thread.current[:celluloid_mailbox] args.unshift meth meth = :__send__ # actor = Thread.current[:celluloid_actor]