lib/rrj/init.rb in ruby_rabbitmq_janus-1.1.11 vs lib/rrj/init.rb in ruby_rabbitmq_janus-1.1.12

- old
+ new

@@ -27,10 +27,11 @@ # Instanciate singleton tools start_instances_tools # Create an session while time opening @session = Janus::Concurrencies::Keepalive.instance.session + Tools::Log.instance.info "Create an session janus with id : #{@session}" @transaction = nil end # Send an simple message to janus. No options in request with this method. @@ -141,10 +142,10 @@ # } def handle_message_simple(type, replace = {}, add = {}, exclusive = false) handle = replace.include?('handle_id') ? replace['handle_id'] : 0 @transaction = Janus::Transactions::Handle.new(@session) @transaction.handle_connect_and_stop(exclusive, handle) do - message_handle(type, replace, add).for_plugin + message_handle(type, replace, add) end rescue => error raise Errors::RRJErrorHandle, error end