summaryrefslogtreecommitdiff
path: root/python/qpid/messaging
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2010-09-10 17:26:23 +0000
committerRafael H. Schloming <rhs@apache.org>2010-09-10 17:26:23 +0000
commit8bce2a618aec27f1cff9323864d9753b1ae6cea7 (patch)
tree9f55adb54619fd5d0b2105879c995fd08ea9b5d9 /python/qpid/messaging
parent8623a982ddd4d23d08cc0f19ff7f48123484e8b6 (diff)
downloadqpid-python-8bce2a618aec27f1cff9323864d9753b1ae6cea7.tar.gz
fixed detach to not hang on session error, fixed the tests to include a timeout for connection teardown
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@995884 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/messaging')
-rw-r--r--python/qpid/messaging/endpoints.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/qpid/messaging/endpoints.py b/python/qpid/messaging/endpoints.py
index 7d7d4249a3..886b7f1706 100644
--- a/python/qpid/messaging/endpoints.py
+++ b/python/qpid/messaging/endpoints.py
@@ -261,6 +261,7 @@ class Connection(Endpoint):
def _unlinked(self):
return [l
for ssn in self.sessions.values()
+ if not (ssn.error or ssn.closed)
for l in ssn.senders + ssn.receivers
if not (l.linked or l.error or l.closed)]