summaryrefslogtreecommitdiff
path: root/python/qpid/queue.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/qpid/queue.py')
-rw-r--r--python/qpid/queue.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/qpid/queue.py b/python/qpid/queue.py
index a8a5c0d9ad..830ea6060d 100644
--- a/python/qpid/queue.py
+++ b/python/qpid/queue.py
@@ -42,6 +42,9 @@ class Queue(BaseQueue):
def close(self, error = None):
self.error = error
self.put(Queue.END)
+ if self.thread is not None:
+ self.thread.join()
+ self.thread = None
def get(self, block = True, timeout = None):
result = BaseQueue.get(self, block, timeout)