From d2c1a2e7b358471090867bfeda9d23db1898493d Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Thu, 26 May 2011 17:42:27 +0000 Subject: 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 --- python/qpid/messaging/driver.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'python') 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 -- cgit v1.2.1