git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@669511 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2008-06-19 15:35:56 +00:00
parent 6dc8e1d6fa
commit e38da226ef
1 changed files with 7 additions and 0 deletions

View File

@ -99,6 +99,13 @@ public abstract class AbstractTempRegion extends AbstractRegion {
if (this.doCacheTempDestinations) { if (this.doCacheTempDestinations) {
cachedDestinations.put(new CachedDestination(dest cachedDestinations.put(new CachedDestination(dest
.getActiveMQDestination()), dest); .getActiveMQDestination()), dest);
}else {
try {
dest.dispose(context);
dest.stop();
} catch (Exception e) {
LOG.warn("Failed to dispose of " + dest, e);
}
} }
} }