Skip to content

Commit

Permalink
Don't clobber client properties, such as capabilities, from amq-clien…
Browse files Browse the repository at this point in the history
…t that we are not explicitly setting.
  • Loading branch information
eliaslevy committed May 19, 2012
1 parent f9cc833 commit 5b87935
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/amqp/session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ class Session < AMQ::Client::EventMachineClient
def initialize(*args, &block)
super(*args, &block)

@client_properties = {
@client_properties.merge!({
:platform => ::RUBY_DESCRIPTION,
:product => "AMQP gem",
:information => "http://github.com/ruby-amqp/amqp",
:version => AMQP::VERSION
}
})
end # initialize(*args, &block)

# @return [Boolean] true if this AMQP connection is currently open
Expand Down

0 comments on commit 5b87935

Please sign in to comment.