summaryrefslogtreecommitdiff
path: root/python/qpid/queue.py
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2009-04-18 18:09:38 +0000
committerRafael H. Schloming <rhs@apache.org>2009-04-18 18:09:38 +0000
commit4e20d749dbde6eabf6bbb78f2eb543af81db949c (patch)
treee7739f3aaabea549b7cee2cb80e019cf3980ac12 /python/qpid/queue.py
parent1ffdff37fe513d22089e586940a9475ccba108ac (diff)
downloadqpid-python-4e20d749dbde6eabf6bbb78f2eb543af81db949c.tar.gz
used timed wait to improve debugability
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@766369 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/queue.py')
-rw-r--r--python/qpid/queue.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/qpid/queue.py b/python/qpid/queue.py
index c9f4d1d1d0..63a7684843 100644
--- a/python/qpid/queue.py
+++ b/python/qpid/queue.py
@@ -63,7 +63,9 @@ class Queue(BaseQueue):
if listener is None:
if self.thread is not None:
self.put(Queue.STOP)
- self.thread.join()
+ # loop and timed join permit keyboard interrupts to work
+ while self.thread.isAlive():
+ self.thread.join(3)
self.thread = None
self.listener = listener