lib/adhearsion/outbound_call.rb in adhearsion-2.2.0 vs lib/adhearsion/outbound_call.rb in adhearsion-2.2.1
- old
+ new
@@ -74,11 +74,10 @@
end
end
def run_router
catching_standard_errors do
- dispatcher = Adhearsion.router.handle current_actor
- dispatcher.call current_actor
+ Adhearsion.router.handle current_actor
end
end
def run_router_on_answer
register_event_handler Punchblock::Event::Answered do |event|