lib/punchblock/connection/freeswitch.rb in punchblock-1.8.0 vs lib/punchblock/connection/freeswitch.rb in punchblock-1.8.1

- old
+ new

@@ -25,20 +25,20 @@ stream.shutdown translator.terminate end def write(command, options) - translator.execute_command! command, options + translator.async.execute_command command, options end def handle_event(event) event_handler.call event if event_handler.respond_to?(:call) end private def new_fs_stream - RubyFS::Stream.new(*@stream_options, lambda { |e| translator.handle_es_event! e }) + RubyFS::Stream.new(*@stream_options, lambda { |e| translator.async.handle_es_event e }) end def start_stream @stream = new_fs_stream unless @stream.alive? @stream.run