lib/adhearsion/punchblock_plugin.rb in adhearsion-2.0.0.beta1 vs lib/adhearsion/punchblock_plugin.rb in adhearsion-2.0.0.rc1

- old
+ new

@@ -1,5 +1,7 @@ +# encoding: utf-8 + module Adhearsion class PunchblockPlugin < Plugin extend ActiveSupport::Autoload autoload :Initializer @@ -39,10 +41,10 @@ return 1.0/0.0 if ["Infinity", 1.0/0.0].include? value value.to_i end def execute_component(command, timeout = 60) - client.execute_command command + client.execute_command command, :async => true response = command.response timeout raise response if response.is_a? Exception command end end