mirror of https://github.com/apache/activemq.git
https://issues.apache.org/activemq/browse/AMQ-3013 - additional fix
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1030888 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4fc1712cdc
commit
e96229803d
|
@ -130,7 +130,7 @@ public class TopicRegion extends AbstractRegion {
|
||||||
@Override
|
@Override
|
||||||
public void removeSubscription(ConnectionContext context, RemoveSubscriptionInfo info) throws Exception {
|
public void removeSubscription(ConnectionContext context, RemoveSubscriptionInfo info) throws Exception {
|
||||||
SubscriptionKey key = new SubscriptionKey(info.getClientId(), info.getSubscriptionName());
|
SubscriptionKey key = new SubscriptionKey(info.getClientId(), info.getSubscriptionName());
|
||||||
DurableTopicSubscription sub = durableSubscriptions.get(key);
|
DurableTopicSubscription sub = durableSubscriptions.remove(key);
|
||||||
if (sub == null) {
|
if (sub == null) {
|
||||||
throw new InvalidDestinationException("No durable subscription exists for: " + info.getSubscriptionName());
|
throw new InvalidDestinationException("No durable subscription exists for: " + info.getSubscriptionName());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue