Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Bug in setting reliable in stomp adapter #11

Merged
merged 1 commit into from

2 participants

@robskaggs

Fixed bug in the setting of the reliable configuration setting in the 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).

Rob Skaggs Fixed bug in the setting of the reliable configuration setting in the…
… 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).
6b077ff
@kookster kookster merged commit 91d6c32 into kookster:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 28, 2011
  1. Fixed bug in the setting of the reliable configuration setting in the…

    Rob Skaggs authored
    … 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).
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/activemessaging/adapters/stomp.rb
View
2  lib/activemessaging/adapters/stomp.rb
@@ -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
Something went wrong with that request. Please try again.