summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2013-06-06 11:30:16 +0000
committerGordon Sim <gsim@apache.org>2013-06-06 11:30:16 +0000
commitc3697b05e4556dc32b3dd01c5fa6e3b84c512910 (patch)
tree6545edded96ffd71d34d1e49ebdec3b8b04ada1d
parent30075b86f197aadfbcd060460585ad7edbd1c70b (diff)
downloadqpid-python-c3697b05e4556dc32b3dd01c5fa6e3b84c512910.tar.gz
QPID-4903: don't delete subscription queue when closing link if it was explicitly declared non-exclusive
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1490240 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--python/qpid/messaging/driver.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/qpid/messaging/driver.py b/python/qpid/messaging/driver.py
index 7a36745c33..ac59bcf0a6 100644
--- a/python/qpid/messaging/driver.py
+++ b/python/qpid/messaging/driver.py
@@ -233,7 +233,7 @@ class LinkIn:
exclusive=True,
auto_delete=(reliability == "unreliable")),
overrides=declare)
- _rcv.on_unlink = [QueueDelete(_rcv._queue)]
+ if declare.get("exclusive", True): _rcv.on_unlink = [QueueDelete(_rcv._queue)]
subject = _rcv.subject or SUBJECT_DEFAULTS.get(subtype)
bindings = get_bindings(link_opts, _rcv._queue, _rcv.name, subject)
if not bindings: