Navigation Menu

Skip to content

Commit

Permalink
Fixed bug in the setting of the reliable configuration setting in the…
Browse files Browse the repository at this point in the history
… stomp adapter. With the bug, setting 'reliable: true' in the broker.yml results in reliable being set to false in the stomp client. This fix will allow any setting of reliable in broker.yml to be passed to the stomp client and defaults to reliable being true if no setting is specified in broker.yml (which is how it should work).
  • Loading branch information
Rob Skaggs committed Nov 28, 2011
1 parent 037532e commit 6b077ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/activemessaging/adapters/stomp.rb
Expand Up @@ -20,7 +20,7 @@ def initialize(cfg)
cfg[:passcode] ||= ""
cfg[:host] ||= "localhost"
cfg[:port] ||= "61613"
cfg[:reliable] = cfg[:reliable].nil? ? TRUE : cfg[:reliable].nil?
cfg[:reliable] = cfg[:reliable].nil? ? TRUE : cfg[:reliable]
cfg[:reconnectDelay] ||= 5
cfg[:clientId] ||= nil

Expand Down

0 comments on commit 6b077ff

Please sign in to comment.