mirror of https://github.com/apache/activemq.git
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@669511 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6dc8e1d6fa
commit
e38da226ef
|
@ -99,6 +99,13 @@ public abstract class AbstractTempRegion extends AbstractRegion {
|
|||
if (this.doCacheTempDestinations) {
|
||||
cachedDestinations.put(new CachedDestination(dest
|
||||
.getActiveMQDestination()), dest);
|
||||
}else {
|
||||
try {
|
||||
dest.dispose(context);
|
||||
dest.stop();
|
||||
} catch (Exception e) {
|
||||
LOG.warn("Failed to dispose of " + dest, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue