From 463a2cba683e0a01d3fa933528b3d739f2044a7c Mon Sep 17 00:00:00 2001 From: Duncan McIntyre Date: Thu, 12 Jun 2014 09:52:43 +0100 Subject: [PATCH] Explicit test for values of use_explicit_acks and use_persistent_subscription --- stomp/bin/stomp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stomp/bin/stomp.py b/stomp/bin/stomp.py index 92bf317..d2bd47c 100755 --- a/stomp/bin/stomp.py +++ b/stomp/bin/stomp.py @@ -347,8 +347,8 @@ def run(): connection.subscribe(**{ 'destination': destination, 'version': 1.1, - 'ack': 'client' if use_explicit_acks else 'auto', - 'persistent': 'true' if use_persistent_subscription else 'false', + 'ack': 'client' if use_explicit_acks == '1' else 'auto', + 'persistent': 'true' if use_persistent_subscription == '1' else 'false', 'id': subscription_id, })