git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@608034 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2008-01-02 08:16:25 +00:00
parent 409902c394
commit a0b3e3211e
1 changed files with 12 additions and 10 deletions

View File

@ -301,6 +301,7 @@ public class KahaTopicReferenceStore extends KahaReferenceStore implements Topic
String containerName = getSubscriptionContainerName(subscriberKey);
subscriberContainer.remove(subscriberKey);
TopicSubContainer container = subscriberMessages.remove(subscriberKey);
if (container != null) {
for (Iterator i = container.iterator(); i.hasNext();) {
ConsumerMessageRef ref = (ConsumerMessageRef)i.next();
if (ref != null) {
@ -315,6 +316,7 @@ public class KahaTopicReferenceStore extends KahaReferenceStore implements Topic
}
}
}
}
store.deleteMapContainer(containerName);
}