minor tweak to make absolutely sure that we definitely clear down the clockDaemon

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@429767 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
James Strachan 2006-08-08 18:42:24 +00:00
parent cab35d7553
commit 08e4b7ba19
1 changed files with 3 additions and 0 deletions

View File

@ -190,7 +190,10 @@ public class JDBCPersistenceAdapter extends DataSourceSupport implements Persist
if (clockTicket != null) { if (clockTicket != null) {
clockTicket.cancel(true); clockTicket.cancel(true);
clockTicket = null; clockTicket = null;
}
if (clockDaemon != null) {
clockDaemon.shutdown(); clockDaemon.shutdown();
clockDaemon = null;
} }
DatabaseLocker service = getDatabaseLocker(); DatabaseLocker service = getDatabaseLocker();
if (service != null) { if (service != null) {