From 4d480c923915645e252ff83031d330ce3195e634 Mon Sep 17 00:00:00 2001 From: "Timothy A. Bish" Date: Tue, 24 Jan 2012 22:18:29 +0000 Subject: [PATCH] Add fix : https://issues.apache.org/jira/browse/AMQ-3674 git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1235530 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/activemq/broker/region/TopicRegion.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activemq-core/src/main/java/org/apache/activemq/broker/region/TopicRegion.java b/activemq-core/src/main/java/org/apache/activemq/broker/region/TopicRegion.java index 16c6b42017..43713b69aa 100755 --- a/activemq-core/src/main/java/org/apache/activemq/broker/region/TopicRegion.java +++ b/activemq-core/src/main/java/org/apache/activemq/broker/region/TopicRegion.java @@ -179,7 +179,7 @@ public class TopicRegion extends AbstractRegion { if (sub.isActive()) { throw new JMSException("Durable consumer is in use"); } else { - durableSubscriptions.get(key); + durableSubscriptions.remove(key); } destinationsLock.readLock().lock();