Skip to content

Commit

Permalink
Merge pull request wso2#739 from sdkottegoda/messages_stored_after_un…
Browse files Browse the repository at this point in the history
…subscribed

[MB-1850] messages stored after durable subscription unsubscribes
  • Loading branch information
pumudu88 authored Dec 6, 2016
2 parents b2c7ee2 + b36420a commit 333d1d2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public TopicMessageRouter(String encodedRouterInfo) {
* @throws AndesException
*/
public void removeMapping(String bindingKey, StorageQueue queue) throws AndesException {
if (queue.getBoundSubscriptions().isEmpty() && !queue.isDurable()) {
if (queue.getBoundSubscriptions().isEmpty()) {
List<StorageQueue> boundQueues = routingMap.get(bindingKey);
if (boundQueues != null && !boundQueues.isEmpty()) {
boundQueues.remove(queue);
Expand Down

0 comments on commit 333d1d2

Please sign in to comment.