lib/punchblock/translator/freeswitch/component.rb in punchblock-1.9.0 vs lib/punchblock/translator/freeswitch/component.rb in punchblock-1.9.1
- old
+ new
@@ -16,9 +16,12 @@
class Component
include Celluloid
include DeadActorSafety
include HasGuardedHandlers
+ extend ActorHasGuardedHandlers
+ execute_guarded_handlers_on_receiver
+
attr_reader :id, :call, :call_id
def initialize(component_node, call = nil)
@component_node, @call = component_node, call
@call_id = safe_from_dead_actors { call.id } if call