mirror of https://github.com/apache/activemq.git
Fixing a Usage leak in broker when subscribing to a topic using selector: AMQ-1889
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@686217 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5a81bbb375
commit
293a6983eb
|
@ -570,13 +570,15 @@ public class Topic extends BaseDestination implements Task{
|
|||
return;
|
||||
}
|
||||
}
|
||||
|
||||
MessageEvaluationContext msgContext = context.getMessageEvaluationContext();
|
||||
msgContext.setDestination(destination);
|
||||
msgContext.setMessageReference(message);
|
||||
|
||||
if (!dispatchPolicy.dispatch(message, msgContext, consumers)) {
|
||||
onMessageWithNoConsumers(context, message);
|
||||
}
|
||||
msgContext.clear();
|
||||
|
||||
} finally {
|
||||
dispatchValve.decrement();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue