check tmpDataStore is actually created before closing!

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@454444 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2006-10-09 17:56:58 +00:00
parent b6ba20b965
commit 78035ea26b
1 changed files with 3 additions and 1 deletions

View File

@ -454,7 +454,9 @@ public class BrokerService implements Service, Serializable {
if (broker != null) { if (broker != null) {
stopper.stop(broker); stopper.stop(broker);
} }
if(tempDataStore!=null){
tempDataStore.close(); tempDataStore.close();
}
if (isUseJmx()) { if (isUseJmx()) {
MBeanServer mbeanServer = getManagementContext().getMBeanServer(); MBeanServer mbeanServer = getManagementContext().getMBeanServer();