summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2011-05-26 17:42:27 +0000
committerGordon Sim <gsim@apache.org>2011-05-26 17:42:27 +0000
commitd2c1a2e7b358471090867bfeda9d23db1898493d (patch)
treeb71ee4b88c7a54f1629507d1ce95b91bf2657bf7 /python
parent7d9b26973d2dd32eac10213bf4414a2ad9c28fb0 (diff)
downloadqpid-python-d2c1a2e7b358471090867bfeda9d23db1898493d.tar.gz
QPID-3218: abandon any linking/unlinking if session has been detached
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1128002 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python')
-rw-r--r--python/qpid/messaging/driver.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/qpid/messaging/driver.py b/python/qpid/messaging/driver.py
index 78af2827df..7c21388213 100644
--- a/python/qpid/messaging/driver.py
+++ b/python/qpid/messaging/driver.py
@@ -828,8 +828,9 @@ class Engine:
self._closing = True
def attach(self, ssn):
+ if ssn.closed: return
sst = self._attachments.get(ssn)
- if sst is None and not ssn.closed:
+ if sst is None:
for i in xrange(0, self.channel_max):
if not self._sessions.has_key(i):
ch = i