lib/hornetq/client/session_pool.rb in jruby-hornetq-0.3.1 vs lib/hornetq/client/session_pool.rb in jruby-hornetq-0.3.2
- old
+ new
@@ -102,10 +102,10 @@
producer = nil
begin
producer = s.create_producer(address)
block.call(s, producer)
ensure
- producer.close
+ producer.close if producer
end
end
end
# Obtain a session from the pool and create a Client::Requestor.
\ No newline at end of file