diff options
author | Gordon Sim <gsim@apache.org> | 2011-05-26 17:42:27 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2011-05-26 17:42:27 +0000 |
commit | dd013733f349b34b71392ad61ff101fb281159a6 (patch) | |
tree | 172964ac4b0d953b07584b171360639edc0eea07 | |
parent | 4ef5c94422c884e8d61fabf3fd47acd8a35d75b1 (diff) | |
download | qpid-python-dd013733f349b34b71392ad61ff101fb281159a6.tar.gz |
QPID-3218: abandon any linking/unlinking if session has been detached
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1128002 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | qpid/python/qpid/messaging/driver.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qpid/python/qpid/messaging/driver.py b/qpid/python/qpid/messaging/driver.py index 78af2827df..7c21388213 100644 --- a/qpid/python/qpid/messaging/driver.py +++ b/qpid/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 |