mirror of https://github.com/apache/activemq.git
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@608034 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
409902c394
commit
a0b3e3211e
|
@ -301,6 +301,7 @@ public class KahaTopicReferenceStore extends KahaReferenceStore implements Topic
|
||||||
String containerName = getSubscriptionContainerName(subscriberKey);
|
String containerName = getSubscriptionContainerName(subscriberKey);
|
||||||
subscriberContainer.remove(subscriberKey);
|
subscriberContainer.remove(subscriberKey);
|
||||||
TopicSubContainer container = subscriberMessages.remove(subscriberKey);
|
TopicSubContainer container = subscriberMessages.remove(subscriberKey);
|
||||||
|
if (container != null) {
|
||||||
for (Iterator i = container.iterator(); i.hasNext();) {
|
for (Iterator i = container.iterator(); i.hasNext();) {
|
||||||
ConsumerMessageRef ref = (ConsumerMessageRef)i.next();
|
ConsumerMessageRef ref = (ConsumerMessageRef)i.next();
|
||||||
if (ref != null) {
|
if (ref != null) {
|
||||||
|
@ -315,6 +316,7 @@ public class KahaTopicReferenceStore extends KahaReferenceStore implements Topic
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
store.deleteMapContainer(containerName);
|
store.deleteMapContainer(containerName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue