lib/adhearsion/router/route.rb in adhearsion-2.3.1 vs lib/adhearsion/router/route.rb in adhearsion-2.3.2

- old
+ new

@@ -16,11 +16,11 @@ @target, @guards = block, ([target] + guards) else @target, @guards = target, guards end @guards.compact! - @controller_metadata = {} + @controller_metadata = nil end def match?(call) !guarded? guards, call end @@ -41,10 +41,10 @@ if call_actor[:ahn_prevent_hangup] logger.info "Call routing completed, keeping the call alive at controller/router request." else call_actor.hangup end - rescue Call::Hangup + rescue Call::Hangup, Call::ExpiredError end callback.call if callback } end