summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Ritchie <ritchiem@apache.org>2008-03-17 17:46:54 +0000
committerMartin Ritchie <ritchiem@apache.org>2008-03-17 17:46:54 +0000
commit5fd6a45806455ab7a83660e209e0aabeb66ce47c (patch)
tree53e1e7901bd73383c171762826e6f1e8d971ccb1
parentddd769ed901ea44163dd154ea978957d5dddeed7 (diff)
downloadqpid-python-5fd6a45806455ab7a83660e209e0aabeb66ce47c.tar.gz
QPID-858 : Added cancel to the housekeeping thread when the vhost is closed.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2.1@637991 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--java/broker/src/main/java/org/apache/qpid/server/virtualhost/VirtualHost.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/java/broker/src/main/java/org/apache/qpid/server/virtualhost/VirtualHost.java b/java/broker/src/main/java/org/apache/qpid/server/virtualhost/VirtualHost.java
index 90004a028c..3ff9b8c356 100644
--- a/java/broker/src/main/java/org/apache/qpid/server/virtualhost/VirtualHost.java
+++ b/java/broker/src/main/java/org/apache/qpid/server/virtualhost/VirtualHost.java
@@ -286,6 +286,10 @@ public class VirtualHost implements Accessable
public void close() throws Exception
{
+ if (_houseKeepingTimer != null)
+ {
+ _houseKeepingTimer.cancel();
+ }
if (_messageStore != null)
{
_messageStore.close();